projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Testcase from PR 1508 (although its's somewhat
[oota-llvm.git]
/
test
/
CodeGen
/
PowerPC
/
fold-li.ll
1
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \
2
; RUN: grep -v align | not grep li
3
4
;; Test that immediates are folded into these instructions correctly.
5
6
int %ADD(int %X) {
7
%Y = add int %X, 65537
8
ret int %Y
9
}
10
11
int %SUB(int %X) {
12
%Y = sub int %X, 65537
13
ret int %Y
14
}