aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/ARM/addrmode.ll
blob: 8fd1da791f1fc982f8be43375eda19b1f8c0608c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
; REQUIRES: asserts
; RUN: llc -mtriple=arm-eabi -stats %s -o - 2>&1 | FileCheck %s

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
}

; CHECK: 4 asm-printer