[llvm-commits] CVS: llvm/lib/Target/X86/FloatingPoint.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Apr 11 15:21:01 PDT 2004
Changes in directory llvm/lib/Target/X86:
FloatingPoint.cpp updated: 1.27 -> 1.28
---
Log message:
Relax assertion to make this function work with a broader class of instructions
---
Diffs of the changes: (+8 -2)
Index: llvm/lib/Target/X86/FloatingPoint.cpp
diff -u llvm/lib/Target/X86/FloatingPoint.cpp:1.27 llvm/lib/Target/X86/FloatingPoint.cpp:1.28
--- llvm/lib/Target/X86/FloatingPoint.cpp:1.27 Wed Mar 31 22:06:09 2004
+++ llvm/lib/Target/X86/FloatingPoint.cpp Sun Apr 11 15:21:06 2004
@@ -449,11 +449,17 @@
}
-/// handleOneArgFPRW - fchs - ST(0) = -ST(0)
+/// handleOneArgFPRW: Handle instructions that read from the top of stack and
+/// replace the value with a newly computed value. These instructions may have
+/// non-fp operands after their FP operands.
+///
+/// Examples:
+/// R1 = fchs R2
+/// R1 = fadd R2, [mem]
///
void FPS::handleOneArgFPRW(MachineBasicBlock::iterator &I) {
MachineInstr *MI = I;
- assert(MI->getNumOperands() == 2 && "Can only handle fst* instructions!");
+ assert(MI->getNumOperands() >= 2 && "FPRW instructions must have 2 ops!!");
// Is this the last use of the source register?
unsigned Reg = getFPReg(MI->getOperand(1));
More information about the llvm-commits
mailing list