~pali/+junk/llvm-toolchain-3.7

« back to all changes in this revision

Viewing changes to test/CodeGen/Mips/Fast-ISel/shift.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 -march=mipsel -mcpu=mips32r2 -O0 -fast-isel=true -filetype=obj %s -o - \
 
2
; RUN:   | llvm-objdump -arch mipsel -mcpu=mips32r2 -d - | FileCheck %s
 
3
 
 
4
; This test checks that encoding for srl is correct when fast-isel for mips32r2 is used.
 
5
 
 
6
%struct.s = type { [4 x i8], i32 }
 
7
 
 
8
define i32 @main() nounwind uwtable {
 
9
entry:
 
10
  %foo = alloca %struct.s, align 4
 
11
  %0 = bitcast %struct.s* %foo to i32*
 
12
  %bf.load = load i32, i32* %0, align 4
 
13
  %bf.lshr = lshr i32 %bf.load, 2
 
14
  %cmp = icmp ne i32 %bf.lshr, 2
 
15
  br i1 %cmp, label %if.then, label %if.end
 
16
 
 
17
if.then:
 
18
  unreachable
 
19
 
 
20
if.end:
 
21
  ret i32 0
 
22
}
 
23
 
 
24
; CHECK: srl    ${{[0-9]+}}, ${{[0-9]+}}, {{[0-9]+}}