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