]> granicus.if.org Git - yasm/commitdiff
* x86id.re (push_insn): Turn on signed 8-bit optimization for GAS mode.
authorPeter Johnson <peter@tortall.net>
Mon, 3 Oct 2005 00:12:08 +0000 (00:12 -0000)
committerPeter Johnson <peter@tortall.net>
Mon, 3 Oct 2005 00:12:08 +0000 (00:12 -0000)
Don't do this yet for NASM mode; this could be done e.g. through use of
the strict modifier.

svn path=/trunk/yasm/; revision=1262

modules/arch/x86/x86id.re

index 1676370f8fc3fa3430afd2d17ad6c3a2b654e971..1735877f0bc585054ea0af0eda140f8da3df68f7 100644 (file)
@@ -616,12 +616,14 @@ static const x86_insn_info push_insn[] = {
       {OPT_Imm|OPS_32|OPA_SImm, 0, 0} },
     { CPU_Any, MOD_GasOnly|MOD_GasSufB, 0, 64, 0, 1, {0x6A, 0, 0}, 0, 1,
       {OPT_Imm|OPS_8|OPS_Relaxed|OPA_SImm, 0, 0} },
-    { CPU_Any, MOD_GasOnly|MOD_GasSufW, 16, 64, 0, 1, {0x68, 0, 0}, 0, 1,
-      {OPT_Imm|OPS_16|OPS_Relaxed|OPA_Imm, 0, 0} },
-    { CPU_386|CPU_Not64, MOD_GasOnly|MOD_GasSufL, 32, 0, 0, 1, {0x68, 0, 0},
-      0, 1, {OPT_Imm|OPS_32|OPS_Relaxed|OPA_Imm, 0, 0} },
-    { CPU_Hammer|CPU_64, MOD_GasOnly|MOD_GasSufQ, 64, 64, 0, 1, {0x68, 0, 0},
-      0, 1, {OPT_Imm|OPS_32|OPS_Relaxed|OPA_SImm, 0, 0} },
+    { CPU_Any, MOD_GasOnly|MOD_GasSufW, 16, 64, 0, 1, {0x68, 0x6A, 0}, 0, 1,
+      {OPT_Imm|OPS_16|OPS_Relaxed|OPA_Imm|OPAP_SImm8Avail, 0, 0} },
+    { CPU_386|CPU_Not64, MOD_GasOnly|MOD_GasSufL, 32, 0, 0, 1,
+      {0x68, 0x6A, 0}, 0, 1,
+      {OPT_Imm|OPS_32|OPS_Relaxed|OPA_Imm|OPAP_SImm8Avail, 0, 0} },
+    { CPU_Hammer|CPU_64, MOD_GasOnly|MOD_GasSufQ, 64, 64, 0, 1,
+      {0x68, 0x6A, 0}, 0, 1,
+      {OPT_Imm|OPS_32|OPS_Relaxed|OPA_SImm|OPAP_SImm8Avail, 0, 0} },
     { CPU_Not64, 0, 0, 0, 0, 1, {0x0E, 0, 0}, 0, 1,
       {OPT_CS|OPS_Any|OPA_None, 0, 0} },
     { CPU_Not64, MOD_GasSufW, 16, 0, 0, 1, {0x0E, 0, 0}, 0, 1,