Fix argument widths under windows.
authorChris Hanson <org/chris-hanson/cph>
Mon, 27 Jun 2011 00:24:48 +0000 (17:24 -0700)
committerChris Hanson <org/chris-hanson/cph>
Mon, 27 Jun 2011 00:24:48 +0000 (17:24 -0700)
src/microcode/cmpauxmd/i386.m4

index 9d1273e4dbe83aa36971eb1105c70f42ac9e4700..96bc89558e2455445b874cf7c95beec71ac7262b 100644 (file)
@@ -261,6 +261,10 @@ ifdef(`DASM',
       `define(IND,`dword ptr [$1]')',
       `define(IND,`($1)')')
 
+ifdef(`DASM',
+      `define(INDW,`word ptr [$1]')',
+      `define(INDW,`($1)')')
+
 ifdef(`DASM',
       `define(BOF,`byte ptr $1[$2]')',
       `define(BOF,`$1($2)')')
@@ -1251,7 +1255,7 @@ IF387(`   fwait')
 define_c_label(x87_read_control_word)
 IF387(`        enter           IMM(4),IMM(0)
        fnstcw          IND(REG(esp))
-       OP(mov,w)       TW(IND(REG(esp)),REG(ax))
+       OP(mov,w)       TW(INDW(REG(esp)),REG(ax))
        leave')
        ret
 
@@ -1262,7 +1266,7 @@ IF387(`   fldcw           LOF(4,REG(esp))')
 define_c_label(x87_read_status_word)
 IF387(`        enter           IMM(4),IMM(0)
        fnstsw          IND(REG(esp))
-       OP(mov,w)       TW(IND(REG(esp)),REG(ax))
+       OP(mov,w)       TW(IND@(REG(esp)),REG(ax))
        leave')
        ret