~pali/+junk/llvm-toolchain-3.7

« back to all changes in this revision

Viewing changes to test/CodeGen/PowerPC/optnone-crbits-i1-ret.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 | FileCheck %s
 
2
target datalayout = "E-m:e-i64:64-n32:64"
 
3
target triple = "powerpc64-bgq-linux"
 
4
 
 
5
declare zeroext i1 @ri1()
 
6
declare void @se1()
 
7
declare void @se2()
 
8
 
 
9
define void @test() #0 {
 
10
entry:
 
11
  %b = call zeroext i1 @ri1()
 
12
  br label %next
 
13
 
 
14
; CHECK-LABEL: @test
 
15
; CHECK: bl ri1
 
16
; CHECK-NEXT: nop
 
17
; CHECK: andi. 3, 3, 1
 
18
 
 
19
next:
 
20
  br i1 %b, label %case1, label %case2
 
21
 
 
22
case1:
 
23
  call void @se1()
 
24
  br label %end
 
25
 
 
26
case2:
 
27
  call void @se2()
 
28
  br label %end
 
29
 
 
30
end:
 
31
  ret void
 
32
 
 
33
; CHECK: blr
 
34
}
 
35
 
 
36
attributes #0 = { noinline optnone }
 
37