projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Constant fold SIGN_EXTEND_INREG with ashr not lshr.
[oota-llvm.git]
/
test
/
CodeGen
/
ARM
/
imm.ll
1
; RUN: llvm-as < %s | llc -march=arm | not grep CPI
2
3
define i32 @test1(i32 %A) {
4
%B = add i32 %A, -268435441 ; <i32> [#uses=1]
5
ret i32 %B
6
}
7
8
define i32 @test2() {
9
ret i32 65533
10
}
11
12
define i32 @test3(i32 %A) {
13
%B = or i32 %A, 65533 ; <i32> [#uses=1]
14
ret i32 %B
15
}
16