~pali/+junk/llvm-toolchain-3.7

« back to all changes in this revision

Viewing changes to test/CodeGen/Mips/micromips-delay-slot.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 -mattr=+micromips \
 
2
; RUN:   -relocation-model=static -O2 < %s | FileCheck %s
 
3
 
 
4
; Function Attrs: nounwind
 
5
define i32 @foo(i32 signext %a) #0 {
 
6
entry:
 
7
  %a.addr = alloca i32, align 4
 
8
  store i32 %a, i32* %a.addr, align 4
 
9
  %0 = load i32, i32* %a.addr, align 4
 
10
  %shl = shl i32 %0, 2
 
11
  %call = call i32 @bar(i32 signext %shl)
 
12
  ret i32 %call
 
13
}
 
14
 
 
15
declare i32 @bar(i32 signext) #1
 
16
 
 
17
; CHECK:      jals
 
18
; CHECK-NEXT: sll16