1 ; RUN: llc -mtriple=aarch64-linux-gnu %s -o - | FileCheck %s --check-prefix=LINUX 2 ; RUN: llc -mtriple=aarch64-apple-ios %s -o - | FileCheck %s --check-prefix=IOS 3 ; RUN: llc -mtriple=aarch64-linux-gnueabihf %s -filetype=obj -o %t 4 ; RUN: llvm-objdump -d %t | FileCheck %s --check-prefix=OBJ 5 6 ; OBJ-NOT: dmb 7 8 define void @fence_singlethread() { 9 ; LINUX-LABEL: fence_singlethread: 10 ; LINUX-NOT: dmb 11 ; LINUX: // COMPILER BARRIER 12 ; LINUX-NOT: dmb 13 14 ; IOS-LABEL: fence_singlethread: 15 ; IOS-NOT: dmb 16 ; IOS: ; COMPILER BARRIER 17 ; IOS-NOT: dmb 18 19 fence syncscope("singlethread") seq_cst 20 ret void 21 } 22