1 ; RUN: llc < %s -mtriple=thumbv8m.base | FileCheck %s
2 ; RUN: llc < %s -mtriple=thumbebv8m.base | FileCheck %s
4 define i32 @test_tt(ptr readnone %p) #0 {
6 %0 = tail call i32 @llvm.arm.cmse.tt(ptr %p)
9 ; CHECK-LABEL: test_tt:
10 ; CHECK: tt r{{[0-9]+}}, r{{[0-9]+}}
12 declare i32 @llvm.arm.cmse.tt(ptr) #1
14 define i32 @test_ttt(ptr readnone %p) #0 {
16 %0 = tail call i32 @llvm.arm.cmse.ttt(ptr %p)
19 ; CHECK-LABEL: test_ttt:
20 ; CHECK: ttt r{{[0-9]+}}, r{{[0-9]+}}
22 declare i32 @llvm.arm.cmse.ttt(ptr) #1
24 define i32 @test_tta(ptr readnone %p) #0 {
26 %0 = tail call i32 @llvm.arm.cmse.tta(ptr %p)
29 ; CHECK-LABEL: test_tta:
30 ; CHECK: tta r{{[0-9]+}}, r{{[0-9]+}}
32 declare i32 @llvm.arm.cmse.tta(ptr) #1
34 define i32 @test_ttat(ptr readnone %p) #0 {
36 %0 = tail call i32 @llvm.arm.cmse.ttat(ptr %p)
39 ; CHECK-LABEL: test_ttat:
40 ; CHECK: ttat r{{[0-9]+}}, r{{[0-9]+}}
42 declare i32 @llvm.arm.cmse.ttat(ptr) #1
44 attributes #0 = { nounwind readnone "target-features"="+8msecext"}
45 attributes #1 = { nounwind readnone }