1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-31 16:02:52 +01:00
llvm-mirror/test/CodeGen/X86/trap.ll
2012-05-14 18:58:10 +00:00

22 lines
385 B
LLVM

; RUN: llc < %s -march=x86 -mcpu=yonah | FileCheck %s
; CHECK: test0:
; CHECK: ud2
define i32 @test0() noreturn nounwind {
entry:
tail call void @llvm.trap( )
unreachable
}
; CHECK: test1:
; CHECK: int3
define i32 @test1() noreturn nounwind {
entry:
tail call void @llvm.debugtrap( )
unreachable
}
declare void @llvm.trap() nounwind
declare void @llvm.debugtrap() nounwind