From 9f9b6116e19d76d49fc01aa5ed8fe5457e2c642a Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 24 Mar 2006 20:04:27 +0000 Subject: [PATCH] add another note llvm-svn: 27077 --- llvm/lib/Target/PowerPC/README.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/llvm/lib/Target/PowerPC/README.txt b/llvm/lib/Target/PowerPC/README.txt index 5bdefaa23ce2..12599cb2fa8a 100644 --- a/llvm/lib/Target/PowerPC/README.txt +++ b/llvm/lib/Target/PowerPC/README.txt @@ -579,3 +579,18 @@ Since we know that "Vector" is 16-byte aligned and we know the element offset 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; +} + -- GitLab