changeset 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 722f5e90c39c
children 1d351cd26a5a
files gen/d-asm-i386.h
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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;
 		}