• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

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

修訂2106ed9baf1098a5d76469ecde30813065c46c68 (tree)
時間2020-06-16 17:34:55
作者Jan Beulich <jbeulich@suse...>
CommiterJan Beulich

Log Message

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.

Change Summary

差異

--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -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+
111 2020-06-16 Alan Modra <amodra@gmail.com>
212
313 * config/tc-tic30.h: Remove OBJ_AOUT support.
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -4753,7 +4753,6 @@ md_assemble (char *line)
47534753 || i.tm.cpu_flags.bitfield.cpussse3
47544754 || i.tm.cpu_flags.bitfield.cpusse4_1
47554755 || i.tm.cpu_flags.bitfield.cpusse4_2
4756- || i.tm.cpu_flags.bitfield.cpusse4a
47574756 || i.tm.cpu_flags.bitfield.cpupclmul
47584757 || i.tm.cpu_flags.bitfield.cpuaes
47594758 || i.tm.cpu_flags.bitfield.cpusha
--- a/gas/testsuite/gas/i386/sse-check-error.l
+++ b/gas/testsuite/gas/i386/sse-check-error.l
@@ -5,7 +5,6 @@
55 .*:16: Error: .*
66 .*:19: Error: .*
77 .*:20: Error: .*
8-.*:23: Error: .*
98 .*:26: Error: .*
109 .*:29: Error: .*
1110 .*:32: Error: .*
@@ -44,9 +43,8 @@ GAS LISTING .*
4443 .* Error: SSE instruction `pcmpgtq' is used
4544 [ ]*20[ ]+C1
4645 [ ]*21[ ]+
47-[ ]*22[ ]+\# SSE4a instruction
46+[ ]*22[ ]+\# SSE4a instruction.*
4847 [ ]*23[ ]+\?\?\?\? 660F78C0 extrq \$0, \$0, %xmm0
49-.* Error: SSE instruction `extrq' is used
5048 [ ]*23[ ]+0000
5149 [ ]*24[ ]+
5250 [ ]*25[ ]+\# PCMUL instruction
@@ -70,7 +68,7 @@ GAS LISTING .*
7068 [ ]*36[ ]+\?\?\?\? 62F27D09 vgf2p8mulb %xmm0, %xmm0, %xmm0\{%k1\}
7169 [ ]*36[ ]+CFC0
7270 [ ]*37[ ]+\?\?\?\? 62F27D48 vgf2p8mulb %zmm0, %zmm0, %zmm0
71+[ ]*37[ ]+CFC0
7372 GAS LISTING .*
7473
7574
76-[ ]*37[ ]+CFC0
--- a/gas/testsuite/gas/i386/sse-check-warn.e
+++ b/gas/testsuite/gas/i386/sse-check-warn.e
@@ -5,7 +5,6 @@
55 .*:16: Warning: SSE instruction `phaddw' is used
66 .*:19: Warning: SSE instruction `blendvpd' is used
77 .*:20: Warning: SSE instruction `pcmpgtq' is used
8-.*:23: Warning: SSE instruction `extrq' is used
98 .*:26: Warning: SSE instruction `pclmulqdq' is used
109 .*:29: Warning: SSE instruction `aesdec' is used
1110 .*:32: Warning: SSE instruction `sha1nexte' is used
--- a/gas/testsuite/gas/i386/sse-check.s
+++ b/gas/testsuite/gas/i386/sse-check.s
@@ -19,7 +19,7 @@ _start:
1919 blendvpd %xmm0,%xmm1,%xmm0
2020 pcmpgtq %xmm1,%xmm0
2121
22-# SSE4a instruction
22+# SSE4a instruction (no diagnostic)
2323 extrq $0, $0, %xmm0
2424
2525 # PCMUL instruction
--- a/gas/testsuite/gas/i386/x86-64-sse-check-error.l
+++ b/gas/testsuite/gas/i386/x86-64-sse-check-error.l
@@ -5,7 +5,6 @@
55 .*:16: Error: .*
66 .*:19: Error: .*
77 .*:20: Error: .*
8-.*:23: Error: .*
98 .*:26: Error: .*
109 .*:29: Error: .*
1110 .*:32: Error: .*
@@ -44,9 +43,8 @@ GAS LISTING .*
4443 .* Error: SSE instruction `pcmpgtq' is used
4544 [ ]*20[ ]+C1
4645 [ ]*21[ ]+
47-[ ]*22[ ]+\# SSE4a instruction
46+[ ]*22[ ]+\# SSE4a instruction.*
4847 [ ]*23[ ]+\?\?\?\? 660F78C0 extrq \$0, \$0, %xmm0
49-.* Error: SSE instruction `extrq' is used
5048 [ ]*23[ ]+0000
5149 [ ]*24[ ]+
5250 [ ]*25[ ]+\# PCMUL instruction
@@ -70,7 +68,7 @@ GAS LISTING .*
7068 [ ]*36[ ]+\?\?\?\? 62F27D09 vgf2p8mulb %xmm0, %xmm0, %xmm0\{%k1\}
7169 [ ]*36[ ]+CFC0
7270 [ ]*37[ ]+\?\?\?\? 62F27D48 vgf2p8mulb %zmm0, %zmm0, %zmm0
71+[ ]*37[ ]+CFC0
7372 GAS LISTING .*
7473
7574
76-[ ]*37[ ]+CFC0