brintos

brintos / llvm-project-archived public Read only

0
0
Text · 765 B · 88ca81c Raw
22 lines · plain
1; This test ensures the @llvm.debugtrap() call is not removed when generating2; the 'pop' instruction to restore the callee saved registers on ARM.3 4; RUN: llc < %s -mtriple=armv4 -O0 -filetype=asm | FileCheck --check-prefixes=CHECK,V4 %s5; RUN: llc < %s -mtriple=armv5 -O0 -filetype=asm | FileCheck --check-prefixes=CHECK,V5 %s6; RUN: llc < %s -mtriple=thumbv4 -O0 -filetype=asm | FileCheck --check-prefixes=CHECK,V4 %s7; RUN: llc < %s -mtriple=thumbv5 -O0 -filetype=asm | FileCheck --check-prefixes=CHECK,V5 %s8 9declare void @llvm.debugtrap() nounwind10declare void @foo() nounwind11 12define void @test() nounwind {13entry:14  ; CHECK: bl foo15  ; V4-NEXT: udf #25416  ; V5-NEXT: bkpt #017  ; CHECK-NEXT: pop18  call void @foo()19  call void @llvm.debugtrap()20  ret void21}22