GNU Binutils with patches for OS216
Revision | 45a4bb2010a42637bec03c06d84a998afacefb4e (tree) |
---|---|
Zeit | 2020-01-16 18:07:36 |
Autor | Jan Beulich <jbeulich@suse...> |
Commiter | Jan Beulich |
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.
@@ -1,5 +1,10 @@ | ||
1 | 1 | 2020-01-16 Jan Beulich <jbeulich@suse.com> |
2 | 2 | |
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 | + | |
3 | 8 | * testsuite/gas/i386/avx512dq-inval.l, |
4 | 9 | testsuite/gas/i386/avx512dq-inval.s: New. |
5 | 10 | * testsuite/gas/i386/i386.exp: Run new test. |
@@ -5745,9 +5745,7 @@ match_template (char mnem_suffix) | ||
5745 | 5745 | i386_opcode_modifier suffix_check; |
5746 | 5746 | i386_operand_type operand_types [MAX_OPERANDS]; |
5747 | 5747 | 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; | |
5751 | 5749 | enum i386_error specific_error = 0; |
5752 | 5750 | |
5753 | 5751 | #if MAX_OPERANDS != 5 |
@@ -5799,9 +5797,7 @@ match_template (char mnem_suffix) | ||
5799 | 5797 | |
5800 | 5798 | /* Check processor support. */ |
5801 | 5799 | 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) | |
5805 | 5801 | continue; |
5806 | 5802 | |
5807 | 5803 | /* Check AT&T mnemonic. */ |
@@ -6124,8 +6120,6 @@ check_reverse: | ||
6124 | 6120 | /* Found either forward/reverse 2, 3 or 4 operand match here: |
6125 | 6121 | slip through to break. */ |
6126 | 6122 | } |
6127 | - if (!found_cpu_match) | |
6128 | - continue; | |
6129 | 6123 | |
6130 | 6124 | /* Check if vector and VEX operands are valid. */ |
6131 | 6125 | if (check_VecOperands (t) || VEX_check_operands (t)) |