mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-13 10:23:14 +01:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user