diff options
Diffstat (limited to 'test/CodeGen/SystemZ/atomic-store-02.ll')
-rw-r--r-- | test/CodeGen/SystemZ/atomic-store-02.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/SystemZ/atomic-store-02.ll b/test/CodeGen/SystemZ/atomic-store-02.ll index c9576e55656..f23bac68289 100644 --- a/test/CodeGen/SystemZ/atomic-store-02.ll +++ b/test/CodeGen/SystemZ/atomic-store-02.ll @@ -10,3 +10,12 @@ define void @f1(i16 %val, i16 *%src) { store atomic i16 %val, i16 *%src seq_cst, align 2 ret void } + +define void @f2(i16 %val, i16 *%src) { +; CHECK-LABEL: f2: +; CHECK: sth %r2, 0(%r3) +; CHECK-NOT: bcr 1{{[45]}}, %r0 +; CHECK: br %r14 + store atomic i16 %val, i16 *%src monotonic, align 2 + ret void +} |