Re: [patch,avr] PR115830: Improve code by using more condition code

2024-07-29 Thread Georg-Johann Lay
Am 10.07.24 um 01:17 schrieb Jeff Law: On 7/9/24 4:03 AM, Georg-Johann Lay wrote: Hi Jeff, This patch adds peephole2s and insns to make better use of instructions that set condition code (SREG) as a byproduct. Of course with cc0 all this was *much* simpler... so here we go; adding CCNmode and

Re: [patch,avr] PR115830: Improve code by using more condition code

2024-07-12 Thread Georg-Johann Lay
Am 12.07.24 um 18:40 schrieb Jeff Law: On 7/10/24 3:05 AM, Georg-Johann Lay wrote: The previous change to avr.md was several days ago, and should not interfere with this one.  Anyway, I rebased the patch against master and attached it below.  The patch is atop the ref in the patch file name :

Re: [patch,avr] PR115830: Improve code by using more condition code

2024-07-12 Thread Jeff Law
On 7/10/24 3:05 AM, Georg-Johann Lay wrote: The previous change to avr.md was several days ago, and should not interfere with this one.  Anyway, I rebased the patch against master and attached it below.  The patch is atop the ref in the patch file name : https://gcc.gnu.org/r15-1935 I'll thr

Re: [patch,avr] PR115830: Improve code by using more condition code

2024-07-10 Thread Georg-Johann Lay
Am 10.07.24 um 01:17 schrieb Jeff Law: On 7/9/24 4:03 AM, Georg-Johann Lay wrote: Hi Jeff, This patch adds peephole2s and insns to make better use of instructions that set condition code (SREG) as a byproduct. Of course with cc0 all this was *much* simpler... so here we go; adding CCNmode and

Re: [patch,avr] PR115830: Improve code by using more condition code

2024-07-09 Thread Jeff Law
On 7/9/24 4:03 AM, Georg-Johann Lay wrote: Hi Jeff, This patch adds peephole2s and insns to make better use of instructions that set condition code (SREG) as a byproduct. Of course with cc0 all this was *much* simpler... so here we go; adding CCNmode and CCZNmode, and extra insns that do ari

[patch,avr] PR115830: Improve code by using more condition code

2024-07-09 Thread Georg-Johann Lay
Hi Jeff, This patch adds peephole2s and insns to make better use of instructions that set condition code (SREG) as a byproduct. Of course with cc0 all this was *much* simpler... so here we go; adding CCNmode and CCZNmode, and extra insns that do arith + CC. No new regressions. Ok for master?