llvm.org GIT mirror llvm / 3a972c2
add a testcase for a feature we regressed on because noone wrote the test! :( git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23513 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 14 years ago
1 changed file(s) with 14 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llvm-as < %s | llc -march=ppc32 &&
1 ; RUN: llvm-as < %s | llc -march=ppc32 | grep -v align | not grep li
2
3 ;; Test that immediates are folded into these instructions correctly.
4
5 int %ADD(int %X) {
6 %Y = add int %X, 65537
7 ret int %Y
8 }
9
10 int %SUB(int %X) {
11 %Y = sub int %X, 65537
12 ret int %Y
13 }