mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
AArch64: add test for "fence singlethread"
Forgot a git add yesterday. llvm-svn: 301037
This commit is contained in:
parent
5e1fa81f60
commit
4eed866def
21
test/CodeGen/AArch64/fence-singlethread.ll
Normal file
21
test/CodeGen/AArch64/fence-singlethread.ll
Normal file
@ -0,0 +1,21 @@
|
||||
; RUN: llc -mtriple=aarch64-linux-gnu %s -o - | FileCheck %s --check-prefix=LINUX
|
||||
; RUN: llc -mtriple=aarch64-apple-ios %s -o - | FileCheck %s --check-prefix=IOS
|
||||
; RUN: llc -mtriple=aarch64-linux-gnueabihf %s -filetype=obj -o %t
|
||||
; RUN: llvm-objdump -d %t | FileCheck %s --check-prefix=OBJ
|
||||
|
||||
; OBJ-NOT: dmb
|
||||
|
||||
define void @fence_singlethread() {
|
||||
; LINUX-LABEL: fence_singlethread:
|
||||
; LINUX-NOT: dmb
|
||||
; LINUX: // COMPILER BARRIER
|
||||
; LINUX-NOT: dmb
|
||||
|
||||
; IOS-LABEL: fence_singlethread:
|
||||
; IOS-NOT: dmb
|
||||
; IOS: ; COMPILER BARRIER
|
||||
; IOS-NOT: dmb
|
||||
|
||||
fence singlethread seq_cst
|
||||
ret void
|
||||
}
|
Loading…
Reference in New Issue
Block a user