30 lines · plain
1; RUN: llc < %s -mtriple=i686-apple-darwin8 -mcpu=yonah | FileCheck %s -check-prefixes=CHECK,DARWIN2; RUN: llc < %s -mtriple=i686-unknown-linux -mcpu=yonah | FileCheck %s -check-prefixes=CHECK,LINUX3; RUN: llc < %s -mtriple=x86_64-scei-ps4 | FileCheck %s -check-prefixes=CHECK,PS44; RUN: llc < %s -mtriple=x86_64-sie-ps5 | FileCheck %s -check-prefixes=CHECK,PS45; RUN: llc < %s -mtriple=x86_64-windows-msvc | FileCheck %s -check-prefixes=CHECK,WIN646 7; CHECK-LABEL: test0:8; CHECK: ud29; CHECK-NOT: ud210define i32 @test0() noreturn nounwind {11entry:12 tail call void @llvm.trap( )13 unreachable14}15 16; CHECK-LABEL: test1:17; DARWIN: int318; LINUX: int319; PS4: int $6520; WIN64: int321; WIN64-NOT: ud222define i32 @test1() noreturn nounwind {23entry:24 tail call void @llvm.debugtrap( )25 unreachable26}27 28declare void @llvm.trap() nounwind 29declare void @llvm.debugtrap() nounwind 30