Changes in directory llvm/lib/Target/PowerPC:
README.txt updated: 1.80 -> 1.81 --- Log message: add another note --- Diffs of the changes: (+15 -0) README.txt | 15 +++++++++++++++ 1 files changed, 15 insertions(+) Index: llvm/lib/Target/PowerPC/README.txt diff -u llvm/lib/Target/PowerPC/README.txt:1.80 llvm/lib/Target/PowerPC/README.txt:1.81 --- llvm/lib/Target/PowerPC/README.txt:1.80 Thu Mar 23 15:28:44 2006 +++ llvm/lib/Target/PowerPC/README.txt Fri Mar 24 14:04:27 2006 @@ -579,3 +579,18 @@ of ".X", we should change the load into a lve*x instruction, instead of doing a load/store/lve*x sequence. +===-------------------------------------------------------------------------=== + +We generate ugly code for this: + +void func(unsigned int *ret, float dx, float dy, float dz, float dw) { + unsigned code = 0; + if(dx < -dw) code |= 1; + if(dx > dw) code |= 2; + if(dy < -dw) code |= 4; + if(dy > dw) code |= 8; + if(dz < -dw) code |= 16; + if(dz > dw) code |= 32; + *ret = code; +} + _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits