mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-30 23:42:52 +01:00
17 lines
368 B
LLVM
17 lines
368 B
LLVM
|
; RUN: llc < %s -mtriple=armv8 -mattr=+db | FileCheck %s
|
||
|
|
||
|
define void @test() {
|
||
|
; CHECK: dmb sy
|
||
|
call void @llvm.arm.dmb(i32 15)
|
||
|
; CHECK: dmb osh
|
||
|
call void @llvm.arm.dmb(i32 3)
|
||
|
; CHECK: dsb sy
|
||
|
call void @llvm.arm.dsb(i32 15)
|
||
|
; CHECK: dsb ishld
|
||
|
call void @llvm.arm.dsb(i32 9)
|
||
|
ret void
|
||
|
}
|
||
|
|
||
|
declare void @llvm.arm.dmb(i32)
|
||
|
declare void @llvm.arm.dsb(i32)
|