Don't extract memory from operand for normal memory constraint.
authorliuhongt <hongtao.liu@intel.com>
Mon, 26 Oct 2020 12:46:42 +0000 (20:46 +0800)
committerliuhongt <hongtao.liu@intel.com>
Wed, 4 Nov 2020 05:06:32 +0000 (13:06 +0800)
commit2e0aa43fc6ae689c595902310baec604e7e0d695
tree31a62ed7fb7e9699e169f994db289b256d687411
parentdb8b3e148d5cc5358cd48886e5334bd50d2d3317
Don't extract memory from operand for normal memory constraint.

gcc/ChangeLog
PR target/97540
* ira.c: (ira_setup_alts): Extract memory from operand only
for special memory constraint.
* recog.c (asm_operand_ok): Ditto.
* lra-constraints.c (process_alt_operands): MEM_P is
required for normal memory constraint.

gcc/testsuite/ChangeLog
* gcc.target/i386/pr97540.c: New test.
gcc/ira.c
gcc/lra-constraints.c
gcc/recog.c
gcc/testsuite/gcc.target/i386/pr97540.c [new file with mode: 0644]