[llvm-commits] CVS: llvm/test/Regression/CodeGen/PowerPC/and_add.ll
Chris Lattner
lattner at cs.uiuc.edu
Sun Mar 12 22:50:59 PST 2006
Changes in directory llvm/test/Regression/CodeGen/PowerPC:
and_add.ll added (r1.1)
---
Log message:
new testcase
---
Diffs of the changes: (+11 -0)
and_add.ll | 11 +++++++++++
1 files changed, 11 insertions(+)
Index: llvm/test/Regression/CodeGen/PowerPC/and_add.ll
diff -c /dev/null llvm/test/Regression/CodeGen/PowerPC/and_add.ll:1.1
*** /dev/null Mon Mar 13 00:50:57 2006
--- llvm/test/Regression/CodeGen/PowerPC/and_add.ll Mon Mar 13 00:50:47 2006
***************
*** 0 ****
--- 1,11 ----
+ ; RUN: llvm-as < %s | llc -march=ppc32 | grep slwi &&
+ ; RUN: llvm-as < %s | llc -march=ppc32 | not grep addi &&
+ ; RUN: llvm-as < %s | llc -march=ppc32 | not grep rlwinm
+
+ int %test(int %A) {
+ %B = mul int %A, 8 ;; shift
+ %C = add int %B, 7 ;; dead, no demanded bits.
+ %D = and int %C, -8 ;; dead once add is gone.
+ ret int %D
+ }
+
More information about the llvm-commits
mailing list