• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: sed -e "s/ORDER/acquire/" %s | llc -march=hexagon | FileCheck %s
2; RUN: sed -e "s/ORDER/release/" %s | llc -march=hexagon | FileCheck %s
3; RUN: sed -e "s/ORDER/acq_rel/" %s | llc -march=hexagon | FileCheck %s
4; RUN: sed -e "s/ORDER/seq_cst/" %s | llc -march=hexagon | FileCheck %s
5; RUN: sed -e 's/ORDER/syncscope("singlethread") acquire/' %s | llc -march=hexagon | FileCheck %s
6; RUN: sed -e 's/ORDER/syncscope("singlethread") release/' %s | llc -march=hexagon | FileCheck %s
7; RUN: sed -e 's/ORDER/syncscope("singlethread") acq_rel/' %s | llc -march=hexagon | FileCheck %s
8; RUN: sed -e 's/ORDER/syncscope("singlethread") seq_cst/' %s | llc -march=hexagon | FileCheck %s
9
10define void @fence_func() #0 {
11entry:
12  fence ORDER
13  ret void
14}
15; CHECK-LABEL: fence_func:
16; CHECK: %bb.0
17; CHECK-NEXT: {
18; CHECK-NEXT:   barrier
19; CHECK-NEXT: }
20; CHECK-NEXT: {
21; CHECK-NEXT:   jumpr r31
22; CHECK-NEXT: }
23