[llvm-commits] CVS: llvm/lib/Target/X86/X86FloatingPoint.cpp

Chris Lattner lattner at cs.uiuc.edu
Tue Sep 5 13:27:46 PDT 2006



Changes in directory llvm/lib/Target/X86:

X86FloatingPoint.cpp updated: 1.53 -> 1.54
---
Log message:

Bugfix to work with the two-addr changes that have been made in the tree recently


---
Diffs of the changes:  (+2 -1)

 X86FloatingPoint.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)


Index: llvm/lib/Target/X86/X86FloatingPoint.cpp
diff -u llvm/lib/Target/X86/X86FloatingPoint.cpp:1.53 llvm/lib/Target/X86/X86FloatingPoint.cpp:1.54
--- llvm/lib/Target/X86/X86FloatingPoint.cpp:1.53	Sun Aug 27 07:54:01 2006
+++ llvm/lib/Target/X86/X86FloatingPoint.cpp	Tue Sep  5 15:27:32 2006
@@ -752,7 +752,7 @@
   MachineInstr *MI = I;
 
   unsigned Op0 = getFPReg(MI->getOperand(0));
-  unsigned Op1 = getFPReg(MI->getOperand(1));
+  unsigned Op1 = getFPReg(MI->getOperand(2));
 
   // The first operand *must* be on the top of the stack.
   moveToTop(Op0, I);
@@ -760,6 +760,7 @@
   // Change the second operand to the stack register that the operand is in.
   // Change from the pseudo instruction to the concrete instruction.
   MI->RemoveOperand(0);
+  MI->RemoveOperand(1);
   MI->getOperand(0).setReg(getSTReg(Op1));
   MI->setOpcode(getConcreteOpcode(MI->getOpcode()));
   






More information about the llvm-commits mailing list