repo.or.cz
/
llvm
/
msp430.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Handle logical shift right (at least I hope so :) )
[llvm/msp430.git]
/
test
/
CodeGen
/
ARM
/
addrmode.ll
blob
a3832c0ea3dbab6aab50e817fd777cb53cb15227
1
; RUN: llvm-as < %s | llc -march=arm -stats |& grep asm-printer | grep 4
2
3
define i32 @t1(i32 %a) {
4
%b = mul i32 %a, 9
5
%c = inttoptr i32 %b to i32*
6
%d = load i32* %c
7
ret i32 %d
8
}
9
10
define i32 @t2(i32 %a) {
11
%b = mul i32 %a, -7
12
%c = inttoptr i32 %b to i32*
13
%d = load i32* %c
14
ret i32 %d
15
}