x86: Enable the GPR only instructions for -mgeneral-regs-only
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 17 Jul 2021 21:38:39 +0000 (14:38 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 18 Jul 2021 19:37:48 +0000 (12:37 -0700)
commit6ae8aac19cdbdbd96d90f86e4d8505fe121bdf06
tree9c77c74007cd08c616cfa8f93f41067c8e82bf66
parentf527b8233498b40c8a2c616b82265f2e58aba42a
x86: Enable the GPR only instructions for -mgeneral-regs-only

For -mgeneral-regs-only, enable the GPR only instructions which are
enabled implicitly by SSE ISAs unless they have been disabled explicitly.

gcc/

PR target/101492
* common/config/i386/i386-common.c (ix86_handle_option): For
-mgeneral-regs-only, enable the GPR only instructions which are
enabled implicitly by SSE ISAs unless they have been disabled
explicitly.

gcc/testsuite/

PR target/101492
* gcc.target/i386/pr101492-1.c: New test.
* gcc.target/i386/pr101492-2.c: Likewise.
* gcc.target/i386/pr101492-3.c: Likewise.
* gcc.target/i386/pr101492-4.c: Likewise.
gcc/common/config/i386/i386-common.c
gcc/testsuite/gcc.target/i386/pr101492-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr101492-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr101492-3.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr101492-4.c [new file with mode: 0644]