* x86id.re (push_insn): Turn on signed 8-bit optimization for GAS mode.

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
0.5.0rc2
Peter Johnson 20 years ago
parent 19abb9c4d8
commit b92df685aa
  1. 14
      modules/arch/x86/x86id.re

@ -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,

Loading…
Cancel
Save