From b76bc5d54e36f15efd954898d9aa075c2bea02dd Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Mon, 13 Nov 2017 12:22:21 +0100 Subject: x86: don't default variable shift count insns to 8-bit operand size Just like %dx in I/O instructions isn't suitable to derive operand size information, %cl source operands of shift instructions aren't. --- gas/config/tc-i386.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gas/config') diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 4161c8c..f20be8e 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -5431,7 +5431,8 @@ process_suffix (void) } for (op = i.operands; --op >= 0;) - if (!i.tm.operand_types[op].bitfield.inoutportreg) + if (!i.tm.operand_types[op].bitfield.inoutportreg + && !i.tm.operand_types[op].bitfield.shiftcount) { if (i.types[op].bitfield.reg8) { -- cgit v1.1