1 ; This test ensures the @llvm.debugtrap() call is not removed when generating
2 ; the 'pop' instruction to restore the callee saved registers on ARM.
4 ; RUN: llc < %s -mtriple=armv4 -O0 -filetype=asm | FileCheck --check-prefixes=CHECK,V4 %s
5 ; RUN: llc < %s -mtriple=armv5 -O0 -filetype=asm | FileCheck --check-prefixes=CHECK,V5 %s
6 ; RUN: llc < %s -mtriple=thumbv4 -O0 -filetype=asm | FileCheck --check-prefixes=CHECK,V4 %s
7 ; RUN: llc < %s -mtriple=thumbv5 -O0 -filetype=asm | FileCheck --check-prefixes=CHECK,V5 %s
9 declare void @llvm.debugtrap() nounwind
10 declare void @foo() nounwind
12 define void @test() nounwind {
19 call void @llvm.debugtrap()