]> git.ipfire.org Git - thirdparty/gcc.git/commit
AVR: target/116295 - Fix unrecognizable insn with __flash read.
authorGeorg-Johann Lay <avr@gjlay.de>
Thu, 8 Aug 2024 16:31:16 +0000 (18:31 +0200)
committerGeorg-Johann Lay <avr@gjlay.de>
Thu, 8 Aug 2024 16:39:45 +0000 (18:39 +0200)
commitc4d3dba253b49fb0e8e32109783f76453bc53653
tree87224820d9662e9ff7f0fe14393fe7a9d58dc9c3
parentf6a41ebb5b45be22959afba2fa2b5cf42450378a
AVR: target/116295 - Fix unrecognizable insn with __flash read.

Some loads from non-generic address-spaces are performed by
libgcc calls, and they don't have a POST_INC form.  Don't consider
such insns when running -mfuse-add.

     PR target/116295
gcc/
* config/avr/avr.cc (Mem_Insn::Mem_Insn): Don't consider MEMs
that are avr_mem_memx_p or avr_load_libgcc_p.

gcc/testsuite/
* gcc.target/avr/torture/pr116295.c: New test.
gcc/config/avr/avr.cc
gcc/testsuite/gcc.target/avr/torture/pr116295.c [new file with mode: 0644]