xref: /llvm-project/llvm/test/CodeGen/ARM/intrinsics-v8.ll (revision 99f0d458c3c52b4c428ec6b5b8b8c457b9dbfae3)
1926d3f58SJoey Gouly; RUN: llc < %s -mtriple=armv8 -mattr=+db | FileCheck %s
2926d3f58SJoey Gouly
3926d3f58SJoey Goulydefine void @test() {
4926d3f58SJoey Gouly  ; CHECK: dmb sy
5926d3f58SJoey Gouly  call void @llvm.arm.dmb(i32 15)
6926d3f58SJoey Gouly  ; CHECK: dmb osh
7926d3f58SJoey Gouly  call void @llvm.arm.dmb(i32 3)
8926d3f58SJoey Gouly  ; CHECK: dsb sy
9926d3f58SJoey Gouly  call void @llvm.arm.dsb(i32 15)
10926d3f58SJoey Gouly  ; CHECK: dsb ishld
11926d3f58SJoey Gouly  call void @llvm.arm.dsb(i32 9)
12ad98f167SJoey Gouly  ; CHECK: sevl
13*99f0d458SSaleem Abdulrasool  tail call void @llvm.arm.hint(i32 5) nounwind
14926d3f58SJoey Gouly  ret void
15926d3f58SJoey Gouly}
16926d3f58SJoey Gouly
17926d3f58SJoey Goulydeclare void @llvm.arm.dmb(i32)
18926d3f58SJoey Goulydeclare void @llvm.arm.dsb(i32)
19*99f0d458SSaleem Abdulrasooldeclare void @llvm.arm.hint(i32) nounwind
20