mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-10 01:10:48 +00:00
a6063c6e29
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156774 91177308-0d34-0410-b5e6-96231b3b80d8
22 lines
385 B
LLVM
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
|
|
|