Changes in directory llvm/lib/Target/PowerPC:
README.txt updated: 1.50 -> 1.51 --- Log message: another testcase. --- Diffs of the changes: (+17 -0) README.txt | 17 +++++++++++++++++ 1 files changed, 17 insertions(+) Index: llvm/lib/Target/PowerPC/README.txt diff -u llvm/lib/Target/PowerPC/README.txt:1.50 llvm/lib/Target/PowerPC/README.txt:1.51 --- llvm/lib/Target/PowerPC/README.txt:1.50 Tue Jan 31 01:16:34 2006 +++ llvm/lib/Target/PowerPC/README.txt Tue Jan 31 18:28:12 2006 @@ -460,3 +460,20 @@ This could be done in the dag combiner, by swapping a BR_CC when a SETCC of the same operands (but backwards) exists. In this case, this wouldn't save us anything though, because the compares still wouldn't be shared. + +===-------------------------------------------------------------------------=== + +A simple case we generate suboptimal code on: + +int test(int X) { + return X == 0 ? 32 : 0; +} + +_test: + cntlzw r2, r3 + srwi r2, r2, 5 + slwi r3, r2, 5 + blr + +The shifts should be one 'andi'. + _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits