GNU Binutils with patches for OS216
修訂 | 2106ed9baf1098a5d76469ecde30813065c46c68 (tree) |
---|---|
時間 | 2020-06-16 17:34:55 |
作者 | Jan Beulich <jbeulich@suse...> |
Commiter | Jan Beulich |
x86: drop SSE4a from SSE check again
Upon re-consideration in commit 569d50f1c611 ("x86: further refine SSE
check (SSE4a, SHA, GFNI)") I went too far: Mixing of SSE and AVX insns
doesn't suffer as bad a penalty on AMD CPUs as on Intel ones. SSE4a
being an AMD-only extension, it shouldn't be part of the ISA extensions
set for which the diagnostic may get issued. Undo that part.
@@ -1,3 +1,13 @@ | ||
1 | +2020-06-16 Jan Beulich <jbeulich@suse.com> | |
2 | + | |
3 | + * config/tc-i386.c (md_assemble): Drop SSE4a from SSE check | |
4 | + conditional. | |
5 | + * testsuite/gas/i386/sse-check.s: Adjust comment. | |
6 | + * testsuite/gas/i386/sse-check-error.l, | |
7 | + testsuite/gas/i386/sse-check-warn.e, | |
8 | + testsuite/gas/i386/x86-64-sse-check-error.l: Adjust | |
9 | + expectations. | |
10 | + | |
1 | 11 | 2020-06-16 Alan Modra <amodra@gmail.com> |
2 | 12 | |
3 | 13 | * config/tc-tic30.h: Remove OBJ_AOUT support. |
@@ -4753,7 +4753,6 @@ md_assemble (char *line) | ||
4753 | 4753 | || i.tm.cpu_flags.bitfield.cpussse3 |
4754 | 4754 | || i.tm.cpu_flags.bitfield.cpusse4_1 |
4755 | 4755 | || i.tm.cpu_flags.bitfield.cpusse4_2 |
4756 | - || i.tm.cpu_flags.bitfield.cpusse4a | |
4757 | 4756 | || i.tm.cpu_flags.bitfield.cpupclmul |
4758 | 4757 | || i.tm.cpu_flags.bitfield.cpuaes |
4759 | 4758 | || i.tm.cpu_flags.bitfield.cpusha |
@@ -5,7 +5,6 @@ | ||
5 | 5 | .*:16: Error: .* |
6 | 6 | .*:19: Error: .* |
7 | 7 | .*:20: Error: .* |
8 | -.*:23: Error: .* | |
9 | 8 | .*:26: Error: .* |
10 | 9 | .*:29: Error: .* |
11 | 10 | .*:32: Error: .* |
@@ -44,9 +43,8 @@ GAS LISTING .* | ||
44 | 43 | .* Error: SSE instruction `pcmpgtq' is used |
45 | 44 | [ ]*20[ ]+C1 |
46 | 45 | [ ]*21[ ]+ |
47 | -[ ]*22[ ]+\# SSE4a instruction | |
46 | +[ ]*22[ ]+\# SSE4a instruction.* | |
48 | 47 | [ ]*23[ ]+\?\?\?\? 660F78C0 extrq \$0, \$0, %xmm0 |
49 | -.* Error: SSE instruction `extrq' is used | |
50 | 48 | [ ]*23[ ]+0000 |
51 | 49 | [ ]*24[ ]+ |
52 | 50 | [ ]*25[ ]+\# PCMUL instruction |
@@ -70,7 +68,7 @@ GAS LISTING .* | ||
70 | 68 | [ ]*36[ ]+\?\?\?\? 62F27D09 vgf2p8mulb %xmm0, %xmm0, %xmm0\{%k1\} |
71 | 69 | [ ]*36[ ]+CFC0 |
72 | 70 | [ ]*37[ ]+\?\?\?\? 62F27D48 vgf2p8mulb %zmm0, %zmm0, %zmm0 |
71 | +[ ]*37[ ]+CFC0 | |
73 | 72 | GAS LISTING .* |
74 | 73 | |
75 | 74 | |
76 | -[ ]*37[ ]+CFC0 |
@@ -5,7 +5,6 @@ | ||
5 | 5 | .*:16: Warning: SSE instruction `phaddw' is used |
6 | 6 | .*:19: Warning: SSE instruction `blendvpd' is used |
7 | 7 | .*:20: Warning: SSE instruction `pcmpgtq' is used |
8 | -.*:23: Warning: SSE instruction `extrq' is used | |
9 | 8 | .*:26: Warning: SSE instruction `pclmulqdq' is used |
10 | 9 | .*:29: Warning: SSE instruction `aesdec' is used |
11 | 10 | .*:32: Warning: SSE instruction `sha1nexte' is used |
@@ -19,7 +19,7 @@ _start: | ||
19 | 19 | blendvpd %xmm0,%xmm1,%xmm0 |
20 | 20 | pcmpgtq %xmm1,%xmm0 |
21 | 21 | |
22 | -# SSE4a instruction | |
22 | +# SSE4a instruction (no diagnostic) | |
23 | 23 | extrq $0, $0, %xmm0 |
24 | 24 | |
25 | 25 | # PCMUL instruction |
@@ -5,7 +5,6 @@ | ||
5 | 5 | .*:16: Error: .* |
6 | 6 | .*:19: Error: .* |
7 | 7 | .*:20: Error: .* |
8 | -.*:23: Error: .* | |
9 | 8 | .*:26: Error: .* |
10 | 9 | .*:29: Error: .* |
11 | 10 | .*:32: Error: .* |
@@ -44,9 +43,8 @@ GAS LISTING .* | ||
44 | 43 | .* Error: SSE instruction `pcmpgtq' is used |
45 | 44 | [ ]*20[ ]+C1 |
46 | 45 | [ ]*21[ ]+ |
47 | -[ ]*22[ ]+\# SSE4a instruction | |
46 | +[ ]*22[ ]+\# SSE4a instruction.* | |
48 | 47 | [ ]*23[ ]+\?\?\?\? 660F78C0 extrq \$0, \$0, %xmm0 |
49 | -.* Error: SSE instruction `extrq' is used | |
50 | 48 | [ ]*23[ ]+0000 |
51 | 49 | [ ]*24[ ]+ |
52 | 50 | [ ]*25[ ]+\# PCMUL instruction |
@@ -70,7 +68,7 @@ GAS LISTING .* | ||
70 | 68 | [ ]*36[ ]+\?\?\?\? 62F27D09 vgf2p8mulb %xmm0, %xmm0, %xmm0\{%k1\} |
71 | 69 | [ ]*36[ ]+CFC0 |
72 | 70 | [ ]*37[ ]+\?\?\?\? 62F27D48 vgf2p8mulb %zmm0, %zmm0, %zmm0 |
71 | +[ ]*37[ ]+CFC0 | |
73 | 72 | GAS LISTING .* |
74 | 73 | |
75 | 74 | |
76 | -[ ]*37[ ]+CFC0 |