2015-01-27 03:09:27 +08:00
|
|
|
; RUN: llc < %s -mtriple=i686-apple-darwin8 -mcpu=yonah | FileCheck %s -check-prefix=DARWIN
|
|
|
|
; RUN: llc < %s -mtriple=i686-unknown-linux -mcpu=yonah | FileCheck %s -check-prefix=LINUX
|
|
|
|
; RUN: llc < %s -mtriple=x86_64-scei-ps4 | FileCheck %s -check-prefix=PS4
|
2012-05-11 08:19:32 +08:00
|
|
|
|
2015-01-27 03:09:27 +08:00
|
|
|
; DARWIN-LABEL: test0:
|
|
|
|
; DARWIN: ud2
|
|
|
|
; LINUX-LABEL: test0:
|
|
|
|
; LINUX: ud2
|
|
|
|
; PS4-LABEL: test0:
|
|
|
|
; PS4: ud2
|
2012-05-11 08:19:32 +08:00
|
|
|
define i32 @test0() noreturn nounwind {
|
2008-01-16 06:22:02 +08:00
|
|
|
entry:
|
|
|
|
tail call void @llvm.trap( )
|
|
|
|
unreachable
|
|
|
|
}
|
|
|
|
|
2015-01-27 03:09:27 +08:00
|
|
|
; DARWIN-LABEL: test1:
|
|
|
|
; DARWIN: int3
|
|
|
|
; LINUX-LABEL: test1:
|
|
|
|
; LINUX: int3
|
|
|
|
; PS4-LABEL: test1:
|
|
|
|
; PS4: int $65
|
2012-05-11 08:19:32 +08:00
|
|
|
define i32 @test1() noreturn nounwind {
|
|
|
|
entry:
|
2012-05-15 02:58:10 +08:00
|
|
|
tail call void @llvm.debugtrap( )
|
2012-05-11 08:19:32 +08:00
|
|
|
unreachable
|
|
|
|
}
|
|
|
|
|
2008-01-16 06:22:02 +08:00
|
|
|
declare void @llvm.trap() nounwind
|
2012-05-15 02:58:10 +08:00
|
|
|
declare void @llvm.debugtrap() nounwind
|
2008-01-16 06:22:02 +08:00
|
|
|
|