1; RUN: llc < %s -mtriple=i686-apple-darwin8 -mcpu=yonah | FileCheck %s -check-prefixes=CHECK,DARWIN 2; RUN: llc < %s -mtriple=i686-unknown-linux -mcpu=yonah | FileCheck %s -check-prefixes=CHECK,LINUX 3; RUN: llc < %s -mtriple=x86_64-scei-ps4 | FileCheck %s -check-prefixes=CHECK,PS4 4; RUN: llc < %s -mtriple=x86_64-sie-ps5 | FileCheck %s -check-prefixes=CHECK,PS4 5; RUN: llc < %s -mtriple=x86_64-windows-msvc | FileCheck %s -check-prefixes=CHECK,WIN64 6 7; CHECK-LABEL: test0: 8; CHECK: ud2 9; CHECK-NOT: ud2 10define i32 @test0() noreturn nounwind { 11entry: 12 tail call void @llvm.trap( ) 13 unreachable 14} 15 16; CHECK-LABEL: test1: 17; DARWIN: int3 18; LINUX: int3 19; PS4: int $65 20; WIN64: int3 21; WIN64-NOT: ud2 22define i32 @test1() noreturn nounwind { 23entry: 24 tail call void @llvm.debugtrap( ) 25 unreachable 26} 27 28declare void @llvm.trap() nounwind 29declare void @llvm.debugtrap() nounwind 30