x86: Don't allow KMOV in TLS code sequences
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 16 Nov 2021 15:21:11 +0000 (07:21 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 16 Nov 2021 15:34:46 +0000 (07:34 -0800)
commitd7e3e627027fcf37d63e284144fe27ff4eba36b5
tree2d179da6a560fbb1f9bfe14a2f493e4954e7e889
parent3b2934856f1370b320d8be5e1d4d82ef0c628f01
x86: Don't allow KMOV in TLS code sequences

Don't allow KMOV in TLS code sequences which require integer MOV
instructions.

PR target/28595
* config/tc-i386.c (match_template): Don't allow KMOV in TLS
code sequences.
* testsuite/gas/i386/i386.exp: Run inval-tls and x86-64-inval-tls
tests.
* testsuite/gas/i386/inval-tls.l: New file.
* testsuite/gas/i386/inval-tls.s: Likewise.
* testsuite/gas/i386/x86-64-inval-tls.l: Likewise.
* testsuite/gas/i386/x86-64-inval-tls.s: Likewise.
gas/config/tc-i386.c
gas/testsuite/gas/i386/i386.exp
gas/testsuite/gas/i386/inval-tls.l [new file with mode: 0644]
gas/testsuite/gas/i386/inval-tls.s [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-inval-tls.l [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-inval-tls.s [new file with mode: 0644]