llvm-6502/test/CodeGen/ARM/addrmode.ll
2013-03-12 16:27:52 +00:00

17 lines
334 B
LLVM

; REQUIRES: asserts
; RUN: llc < %s -march=arm -stats 2>&1 | grep asm-printer | grep 4
define i32 @t1(i32 %a) {
%b = mul i32 %a, 9
%c = inttoptr i32 %b to i32*
%d = load i32* %c
ret i32 %d
}
define i32 @t2(i32 %a) {
%b = mul i32 %a, -7
%c = inttoptr i32 %b to i32*
%d = load i32* %c
ret i32 %d
}