• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Revision45a4bb2010a42637bec03c06d84a998afacefb4e (tree)
Zeit2020-01-16 18:07:36
AutorJan Beulich <jbeulich@suse...>
CommiterJan Beulich

Log Message

x86: drop found_cpu_match local variable

50aecf8c5f could have done so right away; perhaps the variable shouldn't
have been introduced in the first place.

Ändern Zusammenfassung

Diff

--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,10 @@
11 2020-01-16 Jan Beulich <jbeulich@suse.com>
22
3+ * config/tc-i386.c (match_template): Drop found_cpu_match local
4+ variable.
5+
6+2020-01-16 Jan Beulich <jbeulich@suse.com>
7+
38 * testsuite/gas/i386/avx512dq-inval.l,
49 testsuite/gas/i386/avx512dq-inval.s: New.
510 * testsuite/gas/i386/i386.exp: Run new test.
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -5745,9 +5745,7 @@ match_template (char mnem_suffix)
57455745 i386_opcode_modifier suffix_check;
57465746 i386_operand_type operand_types [MAX_OPERANDS];
57475747 int addr_prefix_disp;
5748- unsigned int j;
5749- unsigned int found_cpu_match, size_match;
5750- unsigned int check_register;
5748+ unsigned int j, size_match, check_register;
57515749 enum i386_error specific_error = 0;
57525750
57535751 #if MAX_OPERANDS != 5
@@ -5799,9 +5797,7 @@ match_template (char mnem_suffix)
57995797
58005798 /* Check processor support. */
58015799 i.error = unsupported;
5802- found_cpu_match = (cpu_flags_match (t)
5803- == CPU_FLAGS_PERFECT_MATCH);
5804- if (!found_cpu_match)
5800+ if (cpu_flags_match (t) != CPU_FLAGS_PERFECT_MATCH)
58055801 continue;
58065802
58075803 /* Check AT&T mnemonic. */
@@ -6124,8 +6120,6 @@ check_reverse:
61246120 /* Found either forward/reverse 2, 3 or 4 operand match here:
61256121 slip through to break. */
61266122 }
6127- if (!found_cpu_match)
6128- continue;
61296123
61306124 /* Check if vector and VEX operands are valid. */
61316125 if (check_VecOperands (t) || VEX_check_operands (t))