diff options
author | Chris Lattner <sabre@nondot.org> | 2006-02-01 00:28:12 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-02-01 00:28:12 +0000 |
commit | 0ddc18047d7e16d1d325415fc015dc687dc0655f (patch) | |
tree | 358322e0b6513568f65f7341d87f6e6a3161ead3 | |
parent | 0d084c9e4aabb33df7f566de91a16df77c657c9a (diff) |
another testcase.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25862 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/PowerPC/README.txt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/README.txt b/lib/Target/PowerPC/README.txt index e5cf75d3be..1b05e7c4f0 100644 --- a/lib/Target/PowerPC/README.txt +++ b/lib/Target/PowerPC/README.txt @@ -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'. + |