[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCISelLowering.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Apr 4 15:28:48 PDT 2006
Changes in directory llvm/lib/Target/PowerPC:
PPCISelLowering.cpp updated: 1.129 -> 1.130
---
Log message:
Fix some broken logic that would cause us to codegen {2147483647,2147483647,2147483647,2147483647} as 'vspltisb v0, -1'.
---
Diffs of the changes: (+2 -2)
PPCISelLowering.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/lib/Target/PowerPC/PPCISelLowering.cpp
diff -u llvm/lib/Target/PowerPC/PPCISelLowering.cpp:1.129 llvm/lib/Target/PowerPC/PPCISelLowering.cpp:1.130
--- llvm/lib/Target/PowerPC/PPCISelLowering.cpp:1.129 Tue Apr 4 12:25:31 2006
+++ llvm/lib/Target/PowerPC/PPCISelLowering.cpp Tue Apr 4 17:28:35 2006
@@ -353,8 +353,8 @@
ValSizeInBytes >>= 1;
// If the top half equals the bottom half, we're still ok.
- if (((Value >> (ValSizeInBytes*8)) & ((8 << ValSizeInBytes)-1)) !=
- (Value & ((8 << ValSizeInBytes)-1)))
+ if (((Value >> (ValSizeInBytes*8)) & (1 << (8*ValSizeInBytes)-1)) !=
+ (Value & (1 << (8*ValSizeInBytes)-1)))
return false;
}
More information about the llvm-commits
mailing list