[PATCH][PR target/97540] Don't extract memory from operand for normal memory constraint.
Hongtao Liu
crazylht@gmail.com
Tue Oct 27 06:53:16 GMT 2020
Hi:
For inline asm, there could be an operand like (not (mem:)), it's
not a valid operand for normal memory constraint.
Bootstrap is ok, regression test is ok for make check
RUNTESTFLAGS="--target_board='unix{-m32,}'"
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.
--
BR,
Hongtao
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Don-t-extract-memory-from-operand-for-normal-memory-.patch
Type: application/x-patch
Size: 3358 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20201027/cba6e500/attachment.bin>
More information about the Gcc-patches
mailing list