]> git.ipfire.org Git - thirdparty/gcc.git/commit
AVR: Allow to share libgcc's __negsi2.
authorGeorg-Johann Lay <avr@gjlay.de>
Wed, 29 Jan 2025 17:21:07 +0000 (18:21 +0100)
committerGeorg-Johann Lay <avr@gjlay.de>
Wed, 29 Jan 2025 17:25:39 +0000 (18:25 +0100)
commiteacb85eb24c381e38a76d3ad9b2d678c29c171f5
tree3c929cf21be9a9cf1c6ed96bb85cb89e427a6175
parent2a77afa0ee41cb8a3664679dcd4545ccd1aa3b35
AVR: Allow to share libgcc's __negsi2.

libgcc has a module for __negsi2:  REG_22:SI := - REG_22:SI.
This patch adds a pattern that allows to share that function
provided optimize_size.

gcc/
* config/avr/avr.md (*negsi2.libgcc): New insn.
gcc/config/avr/avr.md