blob: 66a900faf062adf981e3d19d52adc701bc6a8b33 [file] [log] [blame]
Reid Spencereb1d74e2007-04-16 17:36:08 +00001; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \
2; RUN: grep -v align | not grep li
Chris Lattner3a972c22005-09-28 23:03:11 +00003
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}