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
|
2014-04-26 01:51:25 +08:00
|
|
|
tail call void @llvm.arm.hint(i32 5) nounwind
|
2013-09-05 23:35:24 +08:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
declare void @llvm.arm.dmb(i32)
|
|
|
|
declare void @llvm.arm.dsb(i32)
|
2014-04-26 01:51:25 +08:00
|
|
|
declare void @llvm.arm.hint(i32) nounwind
|