Home | History | Annotate | Download | only in SystemZ
      1 ; Test 32-bit atomic loads.
      2 ;
      3 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
      4 
      5 ; This is just a placeholder to make sure that loads are handled.
      6 ; Using CS is probably too conservative.
      7 define i32 @f1(i32 %dummy, i32 *%src) {
      8 ; CHECK-LABEL: f1:
      9 ; CHECK: lhi %r2, 0
     10 ; CHECK: cs %r2, %r2, 0(%r3)
     11 ; CHECK: br %r14
     12   %val = load atomic i32 *%src seq_cst, align 4
     13   ret i32 %val
     14 }
     15