aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/trap.ll
blob: 03ae6bfc869ec7b256a8bf0f769e886b2be6d5c6 (plain)
1
2
3
4
5
6
7
8
9
; RUN: llc < %s -march=x86 -mcpu=yonah | grep ud2
define i32 @test() noreturn nounwind  {
entry:
	tail call void @llvm.trap( )
	unreachable
}

declare void @llvm.trap() nounwind