another testcase.
authorChris Lattner <sabre@nondot.org>
Wed, 1 Feb 2006 00:28:12 +0000 (00:28 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 1 Feb 2006 00:28:12 +0000 (00:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25862 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/README.txt

index e5cf75d3beccfefaf53444a5872fffc7c547455f..1b05e7c4f0d72753426699cf91b9927f19ad2fdd 100644 (file)
@@ -460,3 +460,20 @@ In particular, the two compares (marked 1) could be shared by reversing one.
 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'.
+