projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Pointer arithmetic should be done with the index the same size as the pointer.
[oota-llvm.git]
/
test
/
CodeGen
/
ARM
/
imm.ll
1
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | not grep CPI
2
3
int %test1(int %A) {
4
%B = add int %A, -268435441 ; 0xF000000F
5
ret int %B
6
}
7
8
int %test2() {
9
ret int 65533
10
}
11
12
int %test3(int %A) {
13
%B = or int %A, 65533
14
ret int %B
15
}
16
17