aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/fence-singlethread.ll
blob: ec032ccac423c063e2a29a7fdb98da8614aee876 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
; 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

  fence singlethread seq_cst
  ret void
}