llvm.org GIT mirror llvm / release_36 test / CodeGen / X86 / trap.ll
release_36

Tree @release_36 (Download .tar.gz)

trap.ll @release_36raw · history · blame

; RUN: llc < %s -march=x86 -mcpu=yonah | FileCheck %s

; CHECK-LABEL: test0:
; CHECK: ud2
define i32 @test0() noreturn nounwind  {
entry:
	tail call void @llvm.trap( )
	unreachable
}

; CHECK-LABEL: 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