From b92df685aa99c870e1b41a2b2da6f0df93e303b3 Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Mon, 3 Oct 2005 00:12:08 +0000 Subject: [PATCH] * 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 --- modules/arch/x86/x86id.re | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/modules/arch/x86/x86id.re b/modules/arch/x86/x86id.re index 1676370f..1735877f 100644 --- a/modules/arch/x86/x86id.re +++ b/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,