xref: /llvm-project/llvm/test/CodeGen/ARM/fence-singlethread.ll (revision b3154d08e948c37872bf053f90b6728e7d39039b)
1; RUN: llc -mtriple=thumbv7-linux-gnueabihf %s -o - | FileCheck %s
2; RUN: llc -mtriple=thumbv7-apple-ios %s -o - | FileCheck %s
3; RUN: llc -mtriple=thumbv7-linux-gnueabihf %s -filetype=obj -o %t
4; RUN: llvm-objdump -d %t | FileCheck %s --check-prefix=OBJ
5
6; OBJ-NOT: dmb
7
8define void @fence_singlethread() {
9; CHECK-LABEL: fence_singlethread:
10; CHECK-NOT: dmb
11; CHECK: @MEMBARRIER
12; CHECK-NOT: dmb
13
14  fence syncscope("singlethread") seq_cst
15  ret void
16}
17