summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Oliver <protogonoi@gmail.com>2017-04-04 03:58:31 +1000
committerPeter Johnson <johnson.peter@gmail.com>2017-09-23 15:11:49 -0700
commit6eac25ff8c63a448fc6b4452a8697f8e0ee7d021 (patch)
tree9e3f512c5d19450489306f3ff77e632a82994ccf
parent74184586228af6c362f970c84fce58da3fcbdec8 (diff)
downloadyasm-6eac25ff8c63a448fc6b4452a8697f8e0ee7d021.tar.gz
allow movbe to be suffixed with wlq in gas syntax.
-rwxr-xr-xmodules/arch/x86/gen_x86_insn.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/arch/x86/gen_x86_insn.py b/modules/arch/x86/gen_x86_insn.py
index 6f221218..b21c74a2 100755
--- a/modules/arch/x86/gen_x86_insn.py
+++ b/modules/arch/x86/gen_x86_insn.py
@@ -7909,15 +7909,17 @@ add_insn("xsaveopt64", "xsaveopt64", modifiers=[6, 0x0F, 0xAE],
#####################################################################
# Intel MOVBE instruction
#####################################################################
-for sz in (16, 32, 64):
+for sfx, sz in zip("wlq", [16, 32, 64]):
add_group("movbe",
cpu=["MOVBE"],
+ suffix=sfx,
opersize=sz,
opcode=[0x0F, 0x38, 0xF0],
operands=[Operand(type="Reg", size=sz, dest="Spare"),
Operand(type="Mem", size=sz, relaxed=True, dest="EA")])
add_group("movbe",
cpu=["MOVBE"],
+ suffix=sfx,
opersize=sz,
opcode=[0x0F, 0x38, 0xF1],
operands=[Operand(type="Mem", size=sz, relaxed=True, dest="EA"),