brintos

brintos / llvm-project-archived public Read only

0
0
Text · 649 B · eb77daa Raw
23 lines · plain
1; RUN: llc -mtriple=aarch64-linux-gnu %s -o - | FileCheck %s --check-prefix=LINUX2; RUN: llc -mtriple=aarch64-apple-ios %s -o - | FileCheck %s --check-prefix=IOS3; RUN: llc -mtriple=aarch64-apple-ios %s -o - -global-isel | FileCheck %s --check-prefix=IOS4; RUN: llc -mtriple=aarch64 %s -filetype=obj -o %t5; RUN: llvm-objdump -d %t | FileCheck %s --check-prefix=OBJ6 7; OBJ-NOT: dmb8 9define void @fence_singlethread() {10; LINUX-LABEL: fence_singlethread:11; LINUX-NOT: dmb12; LINUX: //MEMBARRIER13; LINUX-NOT: dmb14 15; IOS-LABEL: fence_singlethread:16; IOS-NOT: dmb17; IOS: ;MEMBARRIER18; IOS-NOT: dmb19 20  fence syncscope("singlethread") seq_cst21  ret void22}23