i386: Allow only registers with VALID_INT_MODE_P modes in movstrict<mode> [PR93997]
authorUros Bizjak <ubizjak@gmail.com>
Mon, 2 Mar 2020 20:13:36 +0000 (21:13 +0100)
committerUros Bizjak <ubizjak@gmail.com>
Mon, 2 Mar 2020 20:13:36 +0000 (21:13 +0100)
commitb80cbe2d8d46c8518dca2d781c8ee4d02c5ba1ed
tree4e456065b6e21f0a43ee0eec6b303f71233fa8a0
parentf26688fbe441375e907f0dd2f35837681870b1f4
i386: Allow only registers with VALID_INT_MODE_P modes in movstrict<mode> [PR93997]

*movstrict<mode>_1 insn pattern allows only general registers,
so we have to reject modes not suitable for general regs in
corresponding movstrict<mode> expander.

PR target/93997
* config/i386/i386.md (movstrict<mode>): Allow only
registers with VALID_INT_MODE_P modes.

testsuite/ChangeLog:

PR target/93997
* gcc.target/i386/pr93997.c: New test.
gcc/ChangeLog
gcc/config/i386/i386.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr93997.c [new file with mode: 0644]