2017-04-21 05:56:52 +08:00
|
|
|
; RUN: llc -mtriple=thumbv7-linux-gnueabihf %s -o - | FileCheck %s
|
|
|
|
; RUN: llc -mtriple=thumbv7-apple-ios %s -o - | FileCheck %s
|
|
|
|
; RUN: llc -mtriple=thumbv7-linux-gnueabihf %s -filetype=obj -o %t
|
|
|
|
; RUN: llvm-objdump -d %t | FileCheck %s --check-prefix=OBJ
|
|
|
|
|
|
|
|
; OBJ-NOT: dmb
|
|
|
|
|
|
|
|
define void @fence_singlethread() {
|
|
|
|
; CHECK-LABEL: fence_singlethread:
|
|
|
|
; CHECK-NOT: dmb
|
|
|
|
; CHECK: @ COMPILER BARRIER
|
|
|
|
; CHECK-NOT: dmb
|
|
|
|
|
2017-07-12 06:23:00 +08:00
|
|
|
fence syncscope("singlethread") seq_cst
|
2017-04-21 05:56:52 +08:00
|
|
|
ret void
|
|
|
|
}
|