~pali/+junk/llvm-toolchain-3.7

« back to all changes in this revision

Viewing changes to test/CodeGen/X86/trap.ll

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2015-07-15 17:51:08 UTC
  • Revision ID: package-import@ubuntu.com-20150715175108-l8mynwovkx4zx697
Tags: upstream-3.7~+rc2
ImportĀ upstreamĀ versionĀ 3.7~+rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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