[llvm-commits] CVS: llvm/lib/Target/X86/X86CodeEmitter.cpp X86ISelSimple.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Nov 16 10:41:07 PST 2004
Changes in directory llvm/lib/Target/X86:
X86CodeEmitter.cpp updated: 1.74 -> 1.75
X86ISelSimple.cpp updated: 1.295 -> 1.296
---
Log message:
Fix a major bug in the signed shr code, which apparently only breaks 134.perl!
---
Diffs of the changes: (+3 -2)
Index: llvm/lib/Target/X86/X86CodeEmitter.cpp
diff -u llvm/lib/Target/X86/X86CodeEmitter.cpp:1.74 llvm/lib/Target/X86/X86CodeEmitter.cpp:1.75
--- llvm/lib/Target/X86/X86CodeEmitter.cpp:1.74 Mon Nov 15 22:34:29 2004
+++ llvm/lib/Target/X86/X86CodeEmitter.cpp Tue Nov 16 12:40:52 2004
@@ -635,7 +635,8 @@
(Desc.TSFlags & X86II::FormMask)-X86II::MRM0r);
if (MI.getOperand(MI.getNumOperands()-1).isImmediate()) {
- emitConstant(MI.getOperand(MI.getNumOperands()-1).getImmedValue(), sizeOfImm(Desc));
+ emitConstant(MI.getOperand(MI.getNumOperands()-1).getImmedValue(),
+ sizeOfImm(Desc));
}
break;
Index: llvm/lib/Target/X86/X86ISelSimple.cpp
diff -u llvm/lib/Target/X86/X86ISelSimple.cpp:1.295 llvm/lib/Target/X86/X86ISelSimple.cpp:1.296
--- llvm/lib/Target/X86/X86ISelSimple.cpp:1.295 Mon Nov 15 17:16:34 2004
+++ llvm/lib/Target/X86/X86ISelSimple.cpp Tue Nov 16 12:40:52 2004
@@ -2984,7 +2984,7 @@
BuildMI(*MBB, IP, X86::MOV32rr, 1, DestReg+1).addReg(SrcReg);
BuildMI(*MBB, IP, X86::MOV32ri, 1, DestReg).addImm(0);
} else {
- BuildMI(*MBB, IP, X86::MOV32rr, 1, DestReg).addReg(SrcReg);
+ BuildMI(*MBB, IP, X86::MOV32rr, 1, DestReg).addReg(SrcReg+1);
if (!isSigned) {
BuildMI(*MBB, IP, X86::MOV32ri, 1, DestReg+1).addImm(0);
} else {
More information about the llvm-commits
mailing list