2013-09-05 23:35:24 +08:00
|
|
|
; 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)
|
2013-10-01 20:39:11 +08:00
|
|
|
; CHECK: sevl
|
|
|
|
tail call void @llvm.arm.sevl() nounwind
|
2013-09-05 23:35:24 +08:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
declare void @llvm.arm.dmb(i32)
|
|
|
|
declare void @llvm.arm.dsb(i32)
|
2013-10-01 20:39:11 +08:00
|
|
|
declare void @llvm.arm.sevl() nounwind
|