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 + } + _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits