Mercurial > projects > ldc
diff gen/d-asm-i386.h @ 390:e04389bafb3e
Fix inline asm FS:4 by writing the displacement directly into the asm instead of using %fs:$0 with an input constraint.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 26 Jul 2008 13:38:25 +0200 |
parents | 3f98d46e05a4 |
children | cc40db549aea |
line wrap: on
line diff
--- a/gen/d-asm-i386.h Thu Jul 24 18:51:36 2008 +0200 +++ b/gen/d-asm-i386.h Sat Jul 26 13:38:25 2008 +0200 @@ -1929,7 +1929,8 @@ 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; }