X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gas%2Fconfig%2Ftc-i386.c;h=065b71300825112e42c55ea9552e83ea2eb064a8;hb=ec56d5c0f69f681fe8502d22abb63a99e609fb91;hp=cb22bbc0b15560a0e830534fd766eedd9ad97d46;hpb=a18e2996a2eaddeb1d32cf007fde70e49a1e610f;p=external%2Fbinutils.git diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index cb22bbc..065b713 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -2135,20 +2135,6 @@ md_assemble (line) if (line == NULL) return; - /* The order of the immediates should be reversed - for 2 immediates extrq and insertq instructions */ - if ((i.imm_operands == 2) - && ((strcmp (mnemonic, "extrq") == 0) - || (strcmp (mnemonic, "insertq") == 0))) - { - swap_2_operands (0, 1); - /* "extrq" and insertq" are the only two instructions whose operands - have to be reversed even though they have two immediate operands. - */ - if (intel_syntax) - swap_operands (); - } - /* Now we've parsed the mnemonic into a set of templates, and have the operands at hand. */ @@ -2164,6 +2150,13 @@ md_assemble (line) && operand_type_check (i.types[1], imm))) swap_operands (); + /* The order of the immediates should be reversed + for 2 immediates extrq and insertq instructions */ + if (i.imm_operands == 2 + && (strcmp (mnemonic, "extrq") == 0 + || strcmp (mnemonic, "insertq") == 0)) + swap_2_operands (0, 1); + if (i.imm_operands) optimize_imm ();