blob: 247bfc1e58849e380968ebc9a7b89a67f9c2ff26 [file] [log] [blame]
Joey Gouly926d3f52013-09-05 15:35:24 +00001; RUN: llc < %s -mtriple=armv8 -mattr=+db | FileCheck %s
2
3define void @test() {
4 ; CHECK: dmb sy
5 call void @llvm.arm.dmb(i32 15)
6 ; CHECK: dmb osh
7 call void @llvm.arm.dmb(i32 3)
8 ; CHECK: dsb sy
9 call void @llvm.arm.dsb(i32 15)
10 ; CHECK: dsb ishld
11 call void @llvm.arm.dsb(i32 9)
Joey Goulyad98f162013-10-01 12:39:11 +000012 ; CHECK: sevl
13 tail call void @llvm.arm.sevl() nounwind
Joey Gouly926d3f52013-09-05 15:35:24 +000014 ret void
15}
16
17declare void @llvm.arm.dmb(i32)
18declare void @llvm.arm.dsb(i32)
Joey Goulyad98f162013-10-01 12:39:11 +000019declare void @llvm.arm.sevl() nounwind