Only pass 'returned' to target-specific lowering code when the value of entire regist...
[oota-llvm.git] / test / CodeGen / ARM / addrmode.ll
1 ; REQUIRES: asserts
2 ; RUN: llc < %s -march=arm -stats 2>&1 | grep asm-printer | grep 4
3
4 define i32 @t1(i32 %a) {
5         %b = mul i32 %a, 9
6         %c = inttoptr i32 %b to i32*
7         %d = load i32* %c
8         ret i32 %d
9 }
10
11 define i32 @t2(i32 %a) {
12         %b = mul i32 %a, -7
13         %c = inttoptr i32 %b to i32*
14         %d = load i32* %c
15         ret i32 %d
16 }