]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
hppa: Fix decrement_and_branch_until_zero constraint
authorJohn David Anglin <danglin@gcc.gnu.org>
Tue, 12 Nov 2024 19:26:08 +0000 (14:26 -0500)
committerJohn David Anglin <danglin@gcc.gnu.org>
Tue, 12 Nov 2024 19:28:24 +0000 (14:28 -0500)
The third alternative for argument 4 needs to be an early clobber
constraint.  Noticed testing LRA.

2024-11-12  John David Anglin  <danglin@gcc.gnu.org>

gcc/ChangeLog:

* config/pa/pa.md (decrement_and_branch_until_zero): Fix
constraint.

gcc/config/pa/pa.md

index 1d97cb6f48661d113e14d98f03d4fd339f980fe9..63335c2480c82feba07299b5b7387858e38c38b0 100644 (file)
@@ -9451,7 +9451,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.