Do not generate instructions with mismatched memory/immediate sized

operands. The X86 backend doesn't handle them properly right now.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11944 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Alkis Evlogimenos
2004-02-28 06:01:43 +00:00
parent 43c4361178
commit 745502a04b
4 changed files with 44 additions and 36 deletions

View File

@@ -156,7 +156,10 @@ bool PH::PeepholeOptimize(MachineBasicBlock &MBB,
}
return false;
// FIXME: The printer currently does not play well with instructions
// that have immediates and memory operands with size mismatches so
// the following are disabled.
#if 0
case X86::ADDmi16: case X86::ADDmi32:
case X86::SUBmi16: case X86::SUBmi32:
case X86::ANDmi16: case X86::ANDmi32:
@@ -192,6 +195,7 @@ bool PH::PeepholeOptimize(MachineBasicBlock &MBB,
}
}
return false;
#endif
#if 0
case X86::MOVri32: Size++;