]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
x86/APX: Don't promote AVX/AVX2 instructions out of APX spec
authorH.J. Lu <hjl.tools@gmail.com>
Sun, 15 Sep 2024 23:11:39 +0000 (07:11 +0800)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 18 Sep 2024 02:11:02 +0000 (10:11 +0800)
commit2963d7d80dffc9feb391ce7b5f3bc1c87e932b9d
tree9b82ae51e5051ae5651e05aa139a18656c479c57
parente5856db3311f0813dadf50ec88d8a59475b0ef14
x86/APX: Don't promote AVX/AVX2 instructions out of APX spec

V{BROADCAST,EXTRACT,INSERT}{F,I}128 and VROUND{P,S}{S,D} aren't promoted
to support EGPR in APX spec.  Don't promote them out of APX spec.  This
commit effectively reverted:

ec3babb8c10 x86/APX: V{BROADCAST,EXTRACT,INSERT}{F,I}128 can also be expressed
5a635f1f59a x86/APX: VROUND{P,S}{S,D} encodings require AVX512{F,VL}
eea4357967b x86/APX: VROUND{P,S}{S,D} can generally be encoded

gas/

PR gas/32171
* testsuite/gas/i386/x86-64-apx-egpr-promote-inval.s: Add
V{BROADCAST,EXTRACT,INSERT}{F,I}128 tests with EGPR.
* testsuite/gas/i386/x86-64-apx-evex-promoted.s: Remove
V{BROADCAST,EXTRACT,INSERT}{F,I}128 and VROUND{P,S}{S,D} tests
with EGPR.
* testsuite/gas/i386/x86-64-apx-egpr-inval.l: Updated.
* testsuite/gas/i386/x86-64-apx-egpr-promote-inval.l: Likewise.
* testsuite/gas/i386/x86-64-apx-evex-promoted-intel.d: Likewise.
* testsuite/gas/i386/x86-64-apx-evex-promoted-wig.d: Likewise.
* testsuite/gas/i386/x86-64-apx-evex-promoted.d: Likewise.

opcodes/

PR gas/32171
* i386-opc.tbl: Remove V{BROADCAST,EXTRACT,INSERT}{F,I}128 and
VROUND{P,S}{S,D} entries with EGPR.
* i386-tbl.h: Regenerated.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
gas/testsuite/gas/i386/x86-64-apx-egpr-inval.l
gas/testsuite/gas/i386/x86-64-apx-egpr-promote-inval.l
gas/testsuite/gas/i386/x86-64-apx-egpr-promote-inval.s
gas/testsuite/gas/i386/x86-64-apx-evex-promoted-intel.d
gas/testsuite/gas/i386/x86-64-apx-evex-promoted-wig.d
gas/testsuite/gas/i386/x86-64-apx-evex-promoted.d
gas/testsuite/gas/i386/x86-64-apx-evex-promoted.s
opcodes/i386-opc.tbl
opcodes/i386-tbl.h