diff options
author | Chris Lattner <sabre@nondot.org> | 2006-02-02 07:37:11 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-02-02 07:37:11 +0000 |
commit | 275b8846d519ac91777e6cad00b8650b252d2ed6 (patch) | |
tree | 2a09a3da5547b9b41e44593ed5d23bcd21481a64 | |
parent | 93c740bbbb47280cee38872eb58bfad70f93be66 (diff) |
new example
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25903 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/PowerPC/README.txt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/README.txt b/lib/Target/PowerPC/README.txt index d77d20d85a..468d974a27 100644 --- a/lib/Target/PowerPC/README.txt +++ b/lib/Target/PowerPC/README.txt @@ -448,3 +448,22 @@ LBB1_2: blr noticed in 2005-05-11-Popcount-ffs-fls.c. + + +===-------------------------------------------------------------------------=== + +We should custom expand setcc instead of pretending that we have it. That +would allow us to expose the access of the crbit after the mfcr, allowing +that access to be trivially folded into other ops. A simple example: + +int foo(int a, int b) { return (a < b) << 4; } + +compiles into: + +_foo: + cmpw cr7, r3, r4 + mfcr r2, 1 + rlwinm r2, r2, 29, 31, 31 + slwi r3, r2, 4 + blr + |