2013-09-05 15:35:24 +00: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 12:39:11 +00:00
|
|
|
; CHECK: sevl
|
2014-04-25 17:51:25 +00:00
|
|
|
tail call void @llvm.arm.hint(i32 5) nounwind
|
2013-09-05 15:35:24 +00:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
declare void @llvm.arm.dmb(i32)
|
|
|
|
declare void @llvm.arm.dsb(i32)
|
2014-04-25 17:51:25 +00:00
|
|
|
declare void @llvm.arm.hint(i32) nounwind
|