~pali/+junk/llvm-toolchain-3.7

« back to all changes in this revision

Viewing changes to test/CodeGen/ARM/ifconv-regmask.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=thumbv7s-apple-ios6.0.0 -verify-machineinstrs
 
2
 
 
3
%union.opcode = type { i32 }
 
4
 
 
5
@opcode = external global %union.opcode, align 4
 
6
 
 
7
; Function Attrs: nounwind ssp
 
8
define i32 @sfu() {
 
9
entry:
 
10
  %bf.load = load i32, i32* getelementptr inbounds (%union.opcode, %union.opcode* @opcode, i32 0, i32 0), align 4
 
11
  %bf.lshr = lshr i32 %bf.load, 26
 
12
  %bf.clear = and i32 %bf.lshr, 7
 
13
  switch i32 %bf.clear, label %return [
 
14
    i32 0, label %sw.bb
 
15
    i32 1, label %sw.bb1
 
16
  ]
 
17
 
 
18
sw.bb:                                            ; preds = %entry
 
19
  %call = tail call i32 @func0()
 
20
  br label %return
 
21
 
 
22
sw.bb1:                                           ; preds = %entry
 
23
  %call2 = tail call i32 @func1()
 
24
  br label %return
 
25
 
 
26
return:                                           ; preds = %sw.bb1, %sw.bb, %entry
 
27
  %retval.0 = phi i32 [ %call2, %sw.bb1 ], [ %call, %sw.bb ], [ -1, %entry ]
 
28
  ret i32 %retval.0
 
29
}
 
30
 
 
31
; Function Attrs: nounwind ssp
 
32
declare i32 @func0()
 
33
 
 
34
; Function Attrs: nounwind ssp
 
35
declare i32 @func1()