[llvm-commits] CVS: llvm/test/Regression/CodeGen/PowerPC/fold-li.ll
Chris Lattner
lattner at cs.uiuc.edu
Wed Sep 28 16:03:22 PDT 2005
Changes in directory llvm/test/Regression/CodeGen/PowerPC:
fold-li.ll added (r1.1)
---
Log message:
add a testcase for a feature we regressed on because noone wrote the test! :(
---
Diffs of the changes: (+14 -0)
fold-li.ll | 14 ++++++++++++++
1 files changed, 14 insertions(+)
Index: llvm/test/Regression/CodeGen/PowerPC/fold-li.ll
diff -c /dev/null llvm/test/Regression/CodeGen/PowerPC/fold-li.ll:1.1
*** /dev/null Wed Sep 28 18:03:21 2005
--- llvm/test/Regression/CodeGen/PowerPC/fold-li.ll Wed Sep 28 18:03:11 2005
***************
*** 0 ****
--- 1,14 ----
+ ; RUN: llvm-as < %s | llc -march=ppc32 &&
+ ; RUN: llvm-as < %s | llc -march=ppc32 | grep -v align | not grep li
+
+ ;; Test that immediates are folded into these instructions correctly.
+
+ int %ADD(int %X) {
+ %Y = add int %X, 65537
+ ret int %Y
+ }
+
+ int %SUB(int %X) {
+ %Y = sub int %X, 65537
+ ret int %Y
+ }
More information about the llvm-commits
mailing list