Fix inline asm FS:4 by writing the displacement directly into the asm instead of using %fs:$0 with an input constraint.

This commit is contained in:
Christian Kamm
2008-07-26 13:38:25 +02:00
parent e6dd53b61c
commit 732cdc5766

View File

@@ -1929,7 +1929,8 @@ struct AsmProcessor
if (operand->constDisplacement) {
if (operand->symbolDisplacement.dim)
insnTemplate->writebyte('+');
addOperand(fmt, Arg_Integer, newIntExp(operand->constDisplacement), asmcode);
//addOperand(fmt, Arg_Integer, newIntExp(operand->constDisplacement), asmcode);
insnTemplate->printf("%d", operand->constDisplacement);
if (opInfo->operands[i] & Opr_Dest)
asmcode->clobbersMemory = 1;
}