From: John David Anglin Date: Tue, 12 Nov 2024 19:26:08 +0000 (-0500) Subject: hppa: Fix decrement_and_branch_until_zero constraint X-Git-Tag: releases/gcc-14.3.0~875 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a41d31fa8c2d025854e9459c135c45633936fc3;p=thirdparty%2Fgcc.git hppa: Fix decrement_and_branch_until_zero constraint The third alternative for argument 4 needs to be an early clobber constraint. Noticed testing LRA. 2024-11-12 John David Anglin gcc/ChangeLog: * config/pa/pa.md (decrement_and_branch_until_zero): Fix constraint. --- diff --git a/gcc/config/pa/pa.md b/gcc/config/pa/pa.md index f5e7d67c69fd..a72edc76f062 100644 --- a/gcc/config/pa/pa.md +++ b/gcc/config/pa/pa.md @@ -9561,7 +9561,7 @@ add,l %2,%3,%3\;bv,n %%r0(%3)" (pc))) (set (match_dup 0) (plus:SI (match_dup 0) (match_dup 1))) - (clobber (match_scratch:SI 4 "=X,r,r"))] + (clobber (match_scratch:SI 4 "=X,r,&r"))] "" "* return pa_output_dbra (operands, insn, which_alternative); " ;; Do not expect to understand this the first time through.