[PATCH v2] x86: Disallow GOT memory as vector memory operand
H.J. Lu
hjl.tools@gmail.com
Thu Feb 6 03:32:15 GMT 2025
GOT memory is 4-byte for i386 and 8-byte for x86-64. Disallow GOT memory
as vector memory operand for vector instructions which don't support 32-bit
nor 64-bit memory.
PR gas/32624
* config/tc-i386.c (output_disp): Disallow GOT memory as vector
memory operand.
* testsuite/gas/i386/got.s: Add vcvtph2qq with GOT memory.
* testsuite/gas/i386/x86-64-gotpcrel-2.s: Add vcvtph2qq and
vcvtps2pd with GOT memory.
* testsuite/gas/i386/got-no-relax.d: Updated.
* testsuite/gas/i386/got.d: Likewise.
* testsuite/gas/i386/x86-64-gotpcrel-2.d: Likewise.
* testsuite/gas/i386/i386.exp: Run inval-got.
* testsuite/gas/i386/inval-got.l: New file.
* testsuite/gas/i386/inval-got.s: Likewise.
* testsuite/gas/i386/x86-64-inval-got.l: Likewise.
* testsuite/gas/i386/x86-64-inval-got.l: Likewise.
* testsuite/gas/i386/x86-64.exp: Run x86-64-inval-got.
--
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: v2-0001-x86-Disallow-GOT-memory-as-vector-memory-operand.patch
Type: text/x-patch
Size: 8403 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20250206/33569e33/attachment.bin>
More information about the Binutils
mailing list