repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[NFC][Py Reformat] Reformat python files in llvm
[llvm-project.git]
/
llvm
/
test
/
CodeGen
/
ARM
/
addrmode.ll
blob
72f7d2645a0f0b295da020b561c58446666fee12
1
; REQUIRES: asserts
2
; RUN: llc -mtriple=arm-eabi -stats %s -o - 2>&1 | FileCheck %s
3
4
define i32 @t1(i32 %a) {
5
%b = mul i32 %a, 9
6
%c = inttoptr i32 %b to ptr
7
%d = load i32, ptr %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 ptr
14
%d = load i32, ptr %c
15
ret i32 %d
16
}
17
18
; CHECK: 4 asm-printer
19