summaryrefslogtreecommitdiff
path: root/test/CodeGen/SystemZ/atomic-store-01.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/SystemZ/atomic-store-01.ll')
-rw-r--r--test/CodeGen/SystemZ/atomic-store-01.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/SystemZ/atomic-store-01.ll b/test/CodeGen/SystemZ/atomic-store-01.ll
index 952e1a91216..617557fd1c2 100644
--- a/test/CodeGen/SystemZ/atomic-store-01.ll
+++ b/test/CodeGen/SystemZ/atomic-store-01.ll
@@ -10,3 +10,12 @@ define void @f1(i8 %val, i8 *%src) {
store atomic i8 %val, i8 *%src seq_cst, align 1
ret void
}
+
+define void @f2(i8 %val, i8 *%src) {
+; CHECK-LABEL: f2:
+; CHECK: stc %r2, 0(%r3)
+; CHECK-NOT: bcr 1{{[45]}}, %r0
+; CHECK: br %r14
+ store atomic i8 %val, i8 *%src monotonic, align 1
+ ret void
+}