diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-02-01 17:54:23 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-02-01 17:54:23 +0000 |
| commit | a983beab37dae30cece4c7a581536ca4eda1d47c (patch) | |
| tree | 1ca0d4f7adab631fdc1660a6d7a4d2942910c023 | |
| parent | 7e7f439f85689228e94cdb1fba63071ac0c91b74 (diff) | |
| download | bcm5719-llvm-a983beab37dae30cece4c7a581536ca4eda1d47c.tar.gz bcm5719-llvm-a983beab37dae30cece4c7a581536ca4eda1d47c.zip | |
add a note
llvm-svn: 25876
| -rw-r--r-- | llvm/lib/Target/PowerPC/README.txt | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/README.txt b/llvm/lib/Target/PowerPC/README.txt index e23c6e77b5b..eccdae71e03 100644 --- a/llvm/lib/Target/PowerPC/README.txt +++ b/llvm/lib/Target/PowerPC/README.txt @@ -435,3 +435,32 @@ 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. +===-------------------------------------------------------------------------=== + +The legalizer should lower this: + +bool %test(ulong %x) { + %tmp = setlt ulong %x, 4294967296 + ret bool %tmp +} + +into "if x.high == 0", not: + +_test: + addi r2, r3, -1 + cntlzw r2, r2 + cntlzw r3, r3 + srwi r2, r2, 5 + srwi r3, r3, 5 + li r4, 0 + cmpwi cr0, r2, 0 + bne cr0, LBB1_2 ; +LBB1_1: + or r4, r3, r3 +LBB1_2: + cmplw cr7, r4, r3 + mfcr r2, 1 + rlwinm r3, r2, 29, 31, 31 + blr + +noticed in 2005-05-11-Popcount-ffs-fls.c. |

