From: H.J. Lu Date: Fri, 5 Oct 2007 17:50:47 +0000 (+0000) Subject: 2007-10-05 H.J. Lu X-Git-Tag: sid-snapshot-20071101~425 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=368d64cc3710aa21451bf085225d4986fcb53486;p=platform%2Fupstream%2Fbinutils.git 2007-10-05 H.J. Lu * config/tc-i386.c (build_modrm_byte): Check the first 2 8bit immediate operands directly for instructions with 4 operands. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 1b2e47b..b3f610e 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2007-10-05 H.J. Lu + + * config/tc-i386.c (build_modrm_byte): Check the first 2 8bit + immediate operands directly for instructions with 4 operands. + 2007-10-04 H.J. Lu PR gas/5109 diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 56bf31f..a1f60ed 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -4421,11 +4421,12 @@ build_modrm_byte (void) source = 0; break; case 4: - /* When there are 4 operands, the first two must be immediate - operands. The source operand will be the 3rd one. */ + /* When there are 4 operands, the first two must be 8bit + immediate operands. The source operand will be the 3rd + one. */ assert (i.imm_operands == 2 - && operand_type_check (i.types[0], imm) - && operand_type_check (i.types[1], imm)); + && i.types[0].bitfield.imm8 + && i.types[1].bitfield.imm8); source = 2; break; default: