blob: b07e908d948ad232e6799eb7106a75e1c818dc8f [file] [log] [blame]
; RUN: llc < %s -mtriple=thumbv8m.base | FileCheck %s
; RUN: llc < %s -mtriple=thumbebv8m.base | FileCheck %s
define i32 @test_tt(ptr readnone %p) #0 {
entry:
%0 = tail call i32 @llvm.arm.cmse.tt(ptr %p)
ret i32 %0
}
; CHECK-LABEL: test_tt:
; CHECK: tt r{{[0-9]+}}, r{{[0-9]+}}
declare i32 @llvm.arm.cmse.tt(ptr) #1
define i32 @test_ttt(ptr readnone %p) #0 {
entry:
%0 = tail call i32 @llvm.arm.cmse.ttt(ptr %p)
ret i32 %0
}
; CHECK-LABEL: test_ttt:
; CHECK: ttt r{{[0-9]+}}, r{{[0-9]+}}
declare i32 @llvm.arm.cmse.ttt(ptr) #1
define i32 @test_tta(ptr readnone %p) #0 {
entry:
%0 = tail call i32 @llvm.arm.cmse.tta(ptr %p)
ret i32 %0
}
; CHECK-LABEL: test_tta:
; CHECK: tta r{{[0-9]+}}, r{{[0-9]+}}
declare i32 @llvm.arm.cmse.tta(ptr) #1
define i32 @test_ttat(ptr readnone %p) #0 {
entry:
%0 = tail call i32 @llvm.arm.cmse.ttat(ptr %p)
ret i32 %0
}
; CHECK-LABEL: test_ttat:
; CHECK: ttat r{{[0-9]+}}, r{{[0-9]+}}
declare i32 @llvm.arm.cmse.ttat(ptr) #1
attributes #0 = { nounwind readnone "target-features"="+8msecext"}
attributes #1 = { nounwind readnone }