]> git.ipfire.org Git - thirdparty/gcc.git/commit
AVR: Tweak 32-bit EQ and NE comparisons.
authorGeorg-Johann Lay <avr@gjlay.de>
Tue, 10 Sep 2024 15:51:58 +0000 (17:51 +0200)
committerGeorg-Johann Lay <avr@gjlay.de>
Fri, 13 Sep 2024 09:36:27 +0000 (11:36 +0200)
commit1ec16778312a902592822cbda626241da68ea643
tree1cf401798939d959a6aa4fde058c0920e148e805
parentbe59aaf13cea06a6dd01736d2c31d1c3bc2a60ee
AVR: Tweak 32-bit EQ and NE comparisons.

The order in which multi-byte EQ and NE comparisons are performing
the byte comparisons does not matter, and there are situations where
using SBIW on the high word can save an instruction.

gcc/
* config/avr/avr.cc (avr_out_compare): Tweak 32-bit EQ and NE
comparisons that can use SBIW for the hi16 part.
gcc/config/avr/avr.cc