A obvious typo

llvm-svn: 25435
This commit is contained in:
Evan Cheng 2006-01-19 01:46:14 +00:00
parent c8a9fafcfc
commit 267ba5965e
2 changed files with 3 additions and 1 deletions

View File

@ -215,6 +215,7 @@ void X86DAGToDAGISel::InstructionSelectBasicBlock(SelectionDAG &DAG) {
/// the main function. /// the main function.
static void EmitSpecialCodeForMain(MachineBasicBlock *BB, static void EmitSpecialCodeForMain(MachineBasicBlock *BB,
MachineFrameInfo *MFI) { MachineFrameInfo *MFI) {
#if 0
// Switch the FPU to 64-bit precision mode for better compatibility and speed. // Switch the FPU to 64-bit precision mode for better compatibility and speed.
int CWFrameIdx = MFI->CreateStackObject(2, 2); int CWFrameIdx = MFI->CreateStackObject(2, 2);
addFrameReference(BuildMI(BB, X86::FNSTCW16m, 4), CWFrameIdx); addFrameReference(BuildMI(BB, X86::FNSTCW16m, 4), CWFrameIdx);
@ -225,6 +226,7 @@ static void EmitSpecialCodeForMain(MachineBasicBlock *BB,
// Reload the modified control word now. // Reload the modified control word now.
addFrameReference(BuildMI(BB, X86::FLDCW16m, 4), CWFrameIdx); addFrameReference(BuildMI(BB, X86::FLDCW16m, 4), CWFrameIdx);
#endif
} }
void X86DAGToDAGISel::EmitFunctionEntryCode(Function &Fn, MachineFunction &MF) { void X86DAGToDAGISel::EmitFunctionEntryCode(Function &Fn, MachineFunction &MF) {

View File

@ -1457,7 +1457,7 @@ SDOperand X86TargetLowering::LowerOperation(SDOperand Op, SelectionDAG &DAG) {
Tmp3 = DAG.getNode(ISD::SHL, MVT::i32, ShOpLo, ShAmt); Tmp3 = DAG.getNode(ISD::SHL, MVT::i32, ShOpLo, ShAmt);
} else { } else {
Tmp2 = DAG.getNode(X86ISD::SHRD, MVT::i32, ShOpLo, ShOpHi, ShAmt); Tmp2 = DAG.getNode(X86ISD::SHRD, MVT::i32, ShOpLo, ShOpHi, ShAmt);
Tmp3 = DAG.getNode(isSRA ? ISD::SRA : ISD::SHL, MVT::i32, ShOpHi, ShAmt); Tmp3 = DAG.getNode(isSRA ? ISD::SRA : ISD::SRL, MVT::i32, ShOpHi, ShAmt);
} }
SDOperand InFlag = DAG.getNode(X86ISD::TEST, MVT::Flag, SDOperand InFlag = DAG.getNode(X86ISD::TEST, MVT::Flag,