| Zoran Jovanovic | 37bca10 | 2014-11-10 17:27:56 +0000 | [diff] [blame^] | 1 | ; RUN: llc -march=mipsel -mcpu=mips32r2 -mattr=+micromips \ |
| 2 | ; RUN: -relocation-model=pic -O3 < %s | FileCheck %s | ||||
| 3 | |||||
| 4 | ; Function Attrs: nounwind uwtable | ||||
| 5 | define i32 @foo(i32 %a) #0 { | ||||
| 6 | entry: | ||||
| 7 | %a.addr = alloca i32, align 4 | ||||
| 8 | store i32 %a, i32* %a.addr, align 4 | ||||
| 9 | %0 = load i32* %a.addr, align 4 | ||||
| 10 | %shl = shl i32 %0, 2 | ||||
| 11 | %call = call i32 @bar(i32 %shl) | ||||
| 12 | ret i32 %call | ||||
| 13 | } | ||||
| 14 | |||||
| 15 | declare i32 @bar(i32) #1 | ||||
| 16 | |||||
| 17 | ; CHECK: nop | ||||
| 18 | |||||