blob: 725f1d48484e4d7c12091e79fa2e3bde2e9b9abf [file] [log] [blame]
Chris Lattner3a972c22005-09-28 23:03:11 +00001; RUN: llvm-as < %s | llc -march=ppc32 &&
2; RUN: llvm-as < %s | llc -march=ppc32 | grep -v align | not grep li
3
4;; Test that immediates are folded into these instructions correctly.
5
6int %ADD(int %X) {
7 %Y = add int %X, 65537
8 ret int %Y
9}
10
11int %SUB(int %X) {
12 %Y = sub int %X, 65537
13 ret int %Y
14}