• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; Test 8-bit atomic stores.
2;
3; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
4
5define void @f1(i8 %val, i8 *%src) {
6; CHECK-LABEL: f1:
7; CHECK: stc %r2, 0(%r3)
8; CHECK: bcr 1{{[45]}}, %r0
9; CHECK: br %r14
10  store atomic i8 %val, i8 *%src seq_cst, align 1
11  ret void
12}
13
14define void @f2(i8 %val, i8 *%src) {
15; CHECK-LABEL: f2:
16; CHECK: stc %r2, 0(%r3)
17; CHECK-NOT: bcr 1{{[45]}}, %r0
18; CHECK: br %r14
19  store atomic i8 %val, i8 *%src monotonic, align 1
20  ret void
21}
22