Home | History | Annotate | Download | only in SystemZ
      1 ; Test 64-bit atomic stores.
      2 ;
      3 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
      4 
      5 ; This is just a placeholder to make sure that stores are handled.
      6 ; Using CS is probably too conservative.
      7 define void @f1(i64 %val, i64 *%src) {
      8 ; CHECK-LABEL: f1:
      9 ; CHECK: lg %r0, 0(%r3)
     10 ; CHECK: [[LABEL:\.[^:]*]]:
     11 ; CHECK: csg %r0, %r2, 0(%r3)
     12 ; CHECK: jl [[LABEL]]
     13 ; CHECK: br %r14
     14   store atomic i64 %val, i64 *%src seq_cst, align 8
     15   ret void
     16 }
     17