https://gcc.gnu.org/g:4a9563e6eb3983f7595f92fb49a3a06fd44bf9d8

commit r16-9996-g4a9563e6eb3983f7595f92fb49a3a06fd44bf9d8
Author: John David Anglin <[email protected]>
Date:   Sat Nov 21 15:26:30 2026 -0500

    hppa: Fix LRA spill failures involving R1_REGS (%r1) [PR127142]
    
    With LRA enabled on PA-RISC, explicit (clobber (reg 1)) RTL on call
    patterns caused LRA to treat %r1 as live across call boundaries, while
    patterns restricted solely to the singleton R1_REGS class (=a) such as
    PIC label loads and HIGH symbolic address loads could fail to find a
    spill register when %r1 was contended.
    
    To resolve these spill failures without regressing code quality:
    - Remove redundant %r1 clobbers from call and sibcall patterns since %r1
      is already call-used in the ABI.
    - Merge the 32-bit and 64-bit PIC label address patterns into a single
      Pmode pattern, fix the %r1 operand reference after addil, and add a
      disparaged general-register ('r') fallback alternative using the frame
      marker scratch slot.
    - Add disparaged general-register ('r') fallback alternatives to the
      32-bit and 64-bit PIC HIGH patterns and split the 32-bit non-PIC HIGH
      pattern by TARGET_LONG_LOAD_STORE with an emergency 'r' alternative.
    - Add post-reload define_peephole2 patterns to rewrite general-register
      HIGH and PIC label reloads back to %r1 when %r1 is dead, eliminating
      frame marker saves when uncontended.
    - Implement TARGET_PREFERRED_RELOAD_CLASS to prefer R1_REGS for HIGH and
      pic_label_operand reloads, route R1_REGS spills through GENERAL_REGS
      in pa_spill_class, and lower GENERAL_REGS/R1_REGS <-> FP_REGS move
      costs to 8 in hppa_register_move_cost so LRA can use FP registers as
      an alternate spill area under high integer register pressure.
    
    2026-11-21  John David Anglin  <[email protected]>
    
    gcc/ChangeLog:
    
            PR target/127142
            * config/pa/pa.cc (pa_preferred_reload_class): New function.
            (TARGET_PREFERRED_RELOAD_CLASS): Define.
            (hppa_register_move_cost): Set cost to 2 for moves between
            R1_REGS and GENERAL_REGS, and 8 for moves between
            GENERAL_REGS/R1_REGS and FP_REGS.
            (pa_secondary_reload): Remove redundant sri->icode assignment.
            (pa_spill_class): Return GENERAL_REGS when spilling R1_REGS.
            * config/pa/pa.md: Merge 32-bit and 64-bit PIC label address
            patterns into a single Pmode define_insn, fix %r1 operand in
            addil sequences, and add a disparaged 'r' alternative.
            Add disparaged 'r' alternatives to 32-bit and 64-bit PIC HIGH
            patterns.  Split 32-bit non-PIC HIGH pattern into
            TARGET_LONG_LOAD_STORE and !TARGET_LONG_LOAD_STORE patterns with
            disparaged 'r' alternatives.  Add define_peephole2 patterns to
            use %r1 for HIGH and PIC label loads when %r1 is dead.
            (call_symref, call_symref_pic, call_symref_pic_post_reload)
            (call_symref_64bit, call_symref_64bit_post_reload, call_reg)
            (call_reg_pic, call_reg_pic_post_reload, call_value_symref)
            (call_value_symref_pic, call_value_symref_pic_post_reload)
            (call_value_symref_64bit, call_value_symref_64bit_post_reload)
            (call_value_reg, call_value_reg_pic, call_value_reg_pic_post_reload)
            (sibcall_internal_symref, sibcall_internal_symref_64bit)
            (sibcall_value_internal_symref, 
sibcall_value_internal_symref_64bit):
            Remove (clobber (reg 1)) and update corresponding define_splits.

Diff:
---
 gcc/config/pa/pa.cc |  55 +++++++-
 gcc/config/pa/pa.md | 396 ++++++++++++++++++++++++++++++++++------------------
 2 files changed, 306 insertions(+), 145 deletions(-)

diff --git a/gcc/config/pa/pa.cc b/gcc/config/pa/pa.cc
index 1ca06edb8c74..7bc9a70108c8 100644
--- a/gcc/config/pa/pa.cc
+++ b/gcc/config/pa/pa.cc
@@ -213,6 +213,7 @@ static section* pa_elf_select_rtx_section(machine_mode, 
rtx, unsigned HOST_WIDE_
 static void pa_atomic_assign_expand_fenv (tree *, tree *, tree *);
 static bool pa_use_lra_p (void);
 static bool pa_frame_pointer_required (void);
+static reg_class_t pa_preferred_reload_class (rtx, reg_class_t);
 
 /* The following extra sections are only used for SOM.  */
 static GTY(()) section *som_readonly_data_section;
@@ -445,6 +446,9 @@ static size_t n_deferred_plabels = 0;
 #undef TARGET_ATOMIC_ASSIGN_EXPAND_FENV
 #define TARGET_ATOMIC_ASSIGN_EXPAND_FENV pa_atomic_assign_expand_fenv
 
+#undef TARGET_PREFERRED_RELOAD_CLASS
+#define TARGET_PREFERRED_RELOAD_CLASS pa_preferred_reload_class
+
 struct gcc_target targetm = TARGET_INITIALIZER;
 
 /* Parse the -mfixed-range= option string.  */
@@ -1626,13 +1630,31 @@ hppa_register_move_cost (machine_mode mode 
ATTRIBUTE_UNUSED,
 {
   if (from == SHIFT_REGS)
     return 0x100;
-  else if (to == SHIFT_REGS && FP_REG_CLASS_P (from))
+  if (to == SHIFT_REGS && FP_REG_CLASS_P (from))
     return 18;
-  else if ((FP_REG_CLASS_P (from) && ! FP_REG_CLASS_P (to))
-           || (FP_REG_CLASS_P (to) && ! FP_REG_CLASS_P (from)))
-    return 16;
-  else
+
+  /* Keep R1_REGS to GENERAL_REGS move costs basic and unpenalized.  */
+  if ((from == R1_REGS && to == GENERAL_REGS)
+      || (from == GENERAL_REGS && to == R1_REGS))
     return 2;
+
+  /* Cross-class moves between general/R1 registers and floating-point
+     registers bounce through the -16(%sp) frame marker slot (store + load).
+     A cost of 8 reflects this two-instruction penalty while remaining low
+     enough for LRA to spill integer pseudos into FP registers under tight
+     register pressure — avoiding address-reload overhead on large frames
+     and preventing spill failures when all callee-saved general registers
+     are exhausted.  */
+  if (((from == GENERAL_REGS || from == R1_REGS) && FP_REG_CLASS_P (to))
+      || (FP_REG_CLASS_P (from) && (to == GENERAL_REGS || to == R1_REGS)))
+    return 8;
+
+  /* General fallback for other cross-register-file changes.  */
+  if ((FP_REG_CLASS_P (from) && ! FP_REG_CLASS_P (to))
+      || (FP_REG_CLASS_P (to) && ! FP_REG_CLASS_P (from)))
+    return 16;
+
+  return 2;
 }
 
 /* For the HPPA, REG and REG+CONST is cost 0
@@ -6468,7 +6490,6 @@ pa_secondary_reload (bool in_p, rtx x, reg_class_t 
rclass_i,
            }
        }
 
-      sri->icode = CODE_FOR_nothing;
       return NO_REGS;
     }
 
@@ -11275,6 +11296,12 @@ pa_spill_class (reg_class_t rclass, machine_mode mode)
   if ((mode == SImode || mode == DImode) && FP_REG_CLASS_P (rclass))
     return GENERAL_REGS;
 
+  /* If LRA attempts to spill out of the R1_REGS singleton class,
+     force it to route through GENERAL_REGS first.  This ensures that a
+     safe, fully valid general register is chosen to handle the frame
+     marker offsets.  */
+  if (rclass == R1_REGS)
+    return GENERAL_REGS;
   return NO_REGS;
 }
 
@@ -11584,4 +11611,20 @@ pa_frame_pointer_required (void)
   return false;
 }
 
+/* Implement TARGET_PREFERRED_RELOAD_CLASS.  */
+
+static reg_class_t
+pa_preferred_reload_class (rtx x, reg_class_t rclass)
+{
+  /* Prefer R1_REGS (%r1) when reloading HIGH expressions or PIC labels
+     so that single-instruction addil sequences are selected whenever %r1
+     is available, reserving the multi-instruction general-register
+     fallback for high register contention.  */
+  if ((GET_CODE (x) == HIGH || pic_label_operand (x, GET_MODE (x)))
+      && reg_class_subset_p (R1_REGS, rclass))
+    return R1_REGS;
+
+  return rclass;
+}
+
 #include "gt-pa.h"
diff --git a/gcc/config/pa/pa.md b/gcc/config/pa/pa.md
index d23ab0c5a192..54a547115e06 100644
--- a/gcc/config/pa/pa.md
+++ b/gcc/config/pa/pa.md
@@ -2605,17 +2605,16 @@
   [(set_attr "type" "store")
    (set_attr "length" "4")])
 
-;; For loading the address of a label while generating PIC code.
-;; Note since this pattern can be created at reload time (via movsi), all
-;; the same rules for movsi apply here.  (no new pseudos, no temporaries).
+;; For loading the address of a label while generating PIC code.  Note
+;; since this pattern can be created at reload time (via movsi), all
+;; the same rules for movsi apply here (no new pseudos, no temporaries).
 (define_insn ""
-  [(set (match_operand 0 "pmode_register_operand" "=a")
-       (match_operand 1 "pic_label_operand" ""))]
-  "TARGET_PA_20"
+  [(set (match_operand 0 "pmode_register_operand" "=a,!???????????????r")
+       (match_operand:P 1 "pic_label_operand" ""))]
+  ""
   "*
 {
   rtx xoperands[3];
-
   xoperands[0] = operands[0];
   xoperands[1] = operands[1];
 
@@ -2623,9 +2622,19 @@
       && !LABEL_REF_NONLOCAL_P (operands[1]))
     {
       xoperands[2] = gen_label_rtx ();
-      (*targetm.asm_out.internal_label) (asm_out_file, \"L\",
-                                        CODE_LABEL_NUMBER (xoperands[2]));
-      output_asm_insn (\"mfia %0\", xoperands);
+      if (TARGET_PA_20)
+       {
+         (*targetm.asm_out.internal_label) (asm_out_file, \"L\",
+                                            CODE_LABEL_NUMBER (xoperands[2]));
+         output_asm_insn (\"mfia %0\", xoperands);
+       }
+      else
+       {
+         output_asm_insn (\"bl .+8,%0\", xoperands);
+         output_asm_insn (\"depi 0,31,2,%0\", xoperands);
+         (*targetm.asm_out.internal_label) (asm_out_file, \"L\",
+                                            CODE_LABEL_NUMBER (xoperands[2]));
+       }
 
       /* If we're trying to load the address of a label that happens to be
         close, then we can use a shorter sequence.  */
@@ -2635,94 +2644,214 @@
        output_asm_insn (\"ldo %1-%2(%0),%0\", xoperands);
       else
        {
-         output_asm_insn (\"addil L%%%1-%2,%0\", xoperands);
-         output_asm_insn (\"ldo R%%%1-%2(%0),%0\", xoperands);
+         if (which_alternative == 0)
+           {
+             output_asm_insn (\"addil L%%%1-%2,%0\", xoperands);
+             output_asm_insn (\"ldo R%%%1-%2(%%r1),%0\", xoperands);
+           }
+         else
+           {
+             /* Alternative 1: Temporarily save %r1 in the frame marker
+                to avoid clobbering it during addil.  */
+             if (TARGET_64BIT)
+               {
+                 output_asm_insn (\"std %%r1,-40(%%r30)\", xoperands);
+                 output_asm_insn (\"addil L%%%1-%2,%0\", xoperands);
+                 output_asm_insn (\"ldo R%%%1-%2(%%r1),%0\", xoperands);
+                 output_asm_insn (\"ldd -40(%%r30),%%r1\", xoperands);
+               }
+             else
+               {
+                 output_asm_insn (\"stw %%r1,-16(%%r30)\", xoperands);
+                 output_asm_insn (\"addil L%%%1-%2,%0\", xoperands);
+                 output_asm_insn (\"ldo R%%%1-%2(%%r1),%0\", xoperands);
+                 output_asm_insn (\"ldw -16(%%r30),%%r1\", xoperands);
+               }
+           }
        }
     }
   else
     {
       /* Load using linkage table.  */
-      if (TARGET_64BIT)
+      if (which_alternative == 0)
        {
-         output_asm_insn (\"addil LT%%%1,%%r27\", xoperands);
-         output_asm_insn (\"ldd RT%%%1(%0),%0\", xoperands);
+         if (TARGET_64BIT)
+           {
+             output_asm_insn (\"addil LT%%%1,%%r27\", xoperands);
+             output_asm_insn (\"ldd RT%%%1(%%r1),%0\", xoperands);
+           }
+         else
+           {
+             output_asm_insn (\"addil LT%%%1,%%r19\", xoperands);
+             output_asm_insn (\"ldw RT%%%1(%%r1),%0\", xoperands);
+           }
        }
       else
        {
-         output_asm_insn (\"addil LT%%%1,%%r19\", xoperands);
-         output_asm_insn (\"ldw RT%%%1(%0),%0\", xoperands);
+         /* Alternative 1: Linkage table load avoiding %r1 clobber.  */
+         if (TARGET_64BIT)
+           {
+             output_asm_insn (\"ldil LT%%%1,%0\", xoperands);
+             output_asm_insn (\"add,l %0,%%r27,%0\", xoperands);
+             output_asm_insn (\"ldd RT%%%1(%0),%0\", xoperands);
+           }
+         else
+           {
+             output_asm_insn (\"stw %%r1,-16(%%r30)\", xoperands);
+             output_asm_insn (\"addil LT%%%1,%%r19\", xoperands);
+             output_asm_insn (\"ldw RT%%%1(%%r1),%0\", xoperands);
+             output_asm_insn (\"ldw -16(%%r30),%%r1\", xoperands);
+           }
        }
     }
   return \"\";
 }"
-  [(set_attr "type" "multi")
-   (set_attr "length" "12")])          ; 8 or 12
+  [(set_attr "type" "multi,multi")
+   (set (attr "length")
+      (if_then_else (and (match_test "GET_CODE (operands[1]) == LABEL_REF")
+                   (not (match_test "LABEL_REF_NONLOCAL_P (operands[1])")))
+                   (if_then_else (match_test "TARGET_PA_20")
+                                 (if_then_else (match_test 
"INSN_ADDRESSES_SET_P ()
+                                                            && abs 
(INSN_ADDRESSES (INSN_UID (XEXP (operands[1], 0)))
+                                                                    - 
INSN_ADDRESSES (INSN_UID (insn))) < 8100")
+                                               (const_int 8)
+                                               (if_then_else (eq_attr 
"alternative" "0")
+                                                             (const_int 12)
+                                                             (const_int 20)))
+                                 (if_then_else (match_test 
"INSN_ADDRESSES_SET_P ()
+                                                            && abs 
(INSN_ADDRESSES (INSN_UID (XEXP (operands[1], 0)))
+                                                                    - 
INSN_ADDRESSES (INSN_UID (insn))) < 8100")
+                                               (const_int 12)
+                                               (if_then_else (eq_attr 
"alternative" "0")
+                                                             (const_int 16)
+                                                             (const_int 24))))
+                   (if_then_else (eq_attr "alternative" "0")
+                                 (const_int 8)
+                                 (if_then_else (match_test "TARGET_64BIT")
+                                               (const_int 12)
+                                               (const_int 16)))))])
+
+;; Optimize PIC label address load when LRA choses a general register
+;; other than %r1, but %r1 is actually dead.
+(define_peephole2
+  [(set (match_operand 0 "pmode_register_operand")
+       (match_operand:P 1 "pic_label_operand"))]
+  "REGNO (operands[0]) != 1
+   && peep2_regno_dead_p (0, 1)"
+  [(set (match_dup 2) (match_dup 1))
+   (set (match_dup 0) (match_dup 2))]
+  "
+{
+  operands[2] = gen_rtx_REG (Pmode, 1);
+}")
 
+;; DLTIND relocs need to be converted to DPREL relocs when PIC code
+;; isn't used in a shared object.  Currently, GNU ld only supports
+;; converting addil instructions.
 (define_insn ""
-  [(set (match_operand 0 "pmode_register_operand" "=a")
-       (match_operand 1 "pic_label_operand" ""))]
-  "!TARGET_PA_20"
+  [(set (match_operand:SI 0 "register_operand" "=a,!???????????????r")
+       (plus:SI (match_operand:SI 1 "register_operand" "r,r")
+       (high:SI (match_operand 2 "" ""))))]
+  "symbolic_operand (operands[2], Pmode)
+   && ! function_label_operand (operands[2], Pmode)
+   && flag_pic"
   "*
 {
-  rtx xoperands[3];
-
-  xoperands[0] = operands[0];
-  xoperands[1] = operands[1];
-
-  if (GET_CODE (operands[1]) == LABEL_REF
-      && !LABEL_REF_NONLOCAL_P (operands[1]))
-    {
-      xoperands[2] = gen_label_rtx ();
-      output_asm_insn (\"bl .+8,%0\", xoperands);
-      output_asm_insn (\"depi 0,31,2,%0\", xoperands);
-      (*targetm.asm_out.internal_label) (asm_out_file, \"L\",
-                                        CODE_LABEL_NUMBER (xoperands[2]));
-
-      /* If we're trying to load the address of a label that happens to be
-        close, then we can use a shorter sequence.  */
-      if (INSN_ADDRESSES_SET_P ()
-         && abs (INSN_ADDRESSES (INSN_UID (XEXP (operands[1], 0)))
-                 - INSN_ADDRESSES (INSN_UID (insn))) < 8100)
-       output_asm_insn (\"ldo %1-%2(%0),%0\", xoperands);
-      else
-       {
-         output_asm_insn (\"addil L%%%1-%2,%0\", xoperands);
-         output_asm_insn (\"ldo R%%%1-%2(%0),%0\", xoperands);
-       }
-    }
+  if (which_alternative == 0 || REGNO (operands[0]) == 1)
+    return \"addil LT'%G2,%1\";
   else
-    {
-      /* Load using linkage table.  */
-      output_asm_insn (\"addil LT%%%1,%%r19\", xoperands);
-      output_asm_insn (\"ldw RT%%%1(%0),%0\", xoperands);
-    }
-  return \"\";
+    return \"stw %%r1,-16(%%r30)\;addil LT'%G2,%1\;copy %%r1,%0\;ldw 
-16(%%r30),%%r1\";
 }"
-  [(set_attr "type" "multi")
-   (set_attr "length" "16")])          ; 12 or 16
+  [(set_attr "type" "binary,multi")
+   (set_attr "length" "4,16")])
 
-(define_insn ""
-  [(set (match_operand:SI 0 "register_operand" "=a")
-       (plus:SI (match_operand:SI 1 "register_operand" "r")
-                (high:SI (match_operand 2 "" ""))))]
-  "symbolic_operand (operands[2], Pmode)
-   && ! function_label_operand (operands[2], Pmode)
-   && flag_pic"
-  "addil LT'%G2,%1"
-  [(set_attr "type" "binary")
-   (set_attr "length" "4")])
+;; Optimize 32-bit PIC HIGH + LO_SUM when LRA choses a general register
+;; other than %r1, but %r1 is actually dead.
+(define_peephole2
+  [(set (match_operand:SI 0 "register_operand")
+       (plus:SI (match_operand:SI 1 "register_operand")
+       (high:SI (match_operand 2 ""))))
+   (set (match_operand:SI 3 "register_operand")
+       (lo_sum:SI (match_dup 0)
+                  (match_dup 2)))]
+  "!TARGET_64BIT
+   && flag_pic
+   && REGNO (operands[0]) != 1
+   && peep2_reg_dead_p (2, operands[0])
+   && peep2_regno_dead_p (0, 1)"
+  [(set (reg:SI 1) (plus:SI (match_dup 1) (high:SI (match_dup 2))))
+   (set (match_dup 3) (lo_sum:SI (reg:SI 1) (match_dup 2)))]
+  "")
+
+;; Same optimization for standalone 32-bit PIC HIGH when %r1 is dead.
+(define_peephole2
+  [(set (match_operand:SI 0 "register_operand")
+       (plus:SI (match_operand:SI 1 "register_operand")
+                (high:SI (match_operand 2 ""))))]
+  "!TARGET_64BIT
+   && flag_pic
+   && REGNO (operands[0]) != 1
+   && peep2_regno_dead_p (0, 1)"
+  [(set (reg:SI 1) (plus:SI (match_dup 1) (high:SI (match_dup 2))))
+   (set (match_dup 0) (reg:SI 1))]
+  "")
 
 (define_insn ""
-  [(set (match_operand:DI 0 "register_operand" "=a")
-       (plus:DI (match_operand:DI 1 "register_operand" "r")
-                (high:DI (match_operand 2 "" ""))))]
+  [(set (match_operand:DI 0 "register_operand" "=a,!???????????????r")
+       (plus:DI (match_operand:DI 1 "register_operand" "r,r")
+                (high:DI (match_operand 2 "" ""))))]
   "symbolic_operand (operands[2], Pmode)
    && ! function_label_operand (operands[2], Pmode)
    && TARGET_64BIT
    && flag_pic"
-  "addil LT'%G2,%1"
-  [(set_attr "type" "binary")
-   (set_attr "length" "4")])
+  "*
+{
+  if (which_alternative == 0 || REGNO (operands[0]) == 1)
+    return \"addil LT'%G2,%1\";
+  else if (REGNO (operands[0]) != REGNO (operands[1]))
+    return \"ldil LT'%G2,%0\;add,l %0,%1,%0\";
+  else
+    return \"std %%r1,-40(%%r30)\;addil LT'%G2,%1\;copy %%r1,%0\;ldd 
-40(%%r30),%%r1\";
+}"
+  [(set_attr "type" "binary,multi")
+   (set (attr "length")
+      (if_then_else (ior (eq_attr "alternative" "0")
+                   (match_test "REGNO (operands[0]) == 1"))
+                   (const_int 4)
+                   (if_then_else (match_test "REGNO (operands[0]) != REGNO 
(operands[1])")
+                                 (const_int 8)
+                                 (const_int 16))))])
+
+;; Optimize 64-bit PIC HIGH + LO_SUM when LRA choses a general register
+;; other than %r1, but %r1 is actually dead.
+(define_peephole2
+  [(set (match_operand:DI 0 "register_operand")
+       (plus:DI (match_operand:DI 1 "register_operand")
+                (high:DI (match_operand 2 ""))))
+   (set (match_operand:DI 3 "register_operand")
+       (lo_sum:DI (match_dup 0)
+                  (match_dup 2)))]
+  "TARGET_64BIT
+   && flag_pic
+   && REGNO (operands[0]) != 1
+   && peep2_reg_dead_p (2, operands[0])
+   && peep2_regno_dead_p (0, 1)"
+  [(set (reg:DI 1) (plus:DI (match_dup 1) (high:DI (match_dup 2))))
+   (set (match_dup 3) (lo_sum:DI (reg:DI 1) (match_dup 2)))]
+  "")
+
+;; Same optimization for standalone 64-bit PIC HIGH when %r1 is dead.
+(define_peephole2
+  [(set (match_operand:DI 0 "register_operand")
+       (plus:DI (match_operand:DI 1 "register_operand")
+                (high:DI (match_operand 2 ""))))]
+  "TARGET_64BIT
+   && flag_pic
+   && REGNO (operands[0]) != 1
+   && peep2_regno_dead_p (0, 1)"
+  [(set (reg:DI 1) (plus:DI (match_dup 1) (high:DI (match_dup 2))))
+   (set (match_dup 0) (reg:DI 1))]
+  "")
 
 (define_insn ""
  [(set (match_operand:SI 0 "register_operand" "=r")
@@ -2751,25 +2880,70 @@
 ;; HP linker to eliminate the dp relocation if the symbolic operand
 ;; lives in the TEXT space.
 (define_insn ""
-  [(set (match_operand:SI 0 "register_operand" "=a")
+  [(set (match_operand:SI 0 "register_operand" "=a,!???????????????r")
        (high:SI (match_operand 1 "" "")))]
-  "symbolic_operand (operands[1], Pmode)
+  "TARGET_LONG_LOAD_STORE
+   && symbolic_operand (operands[1], Pmode)
    && ! function_label_operand (operands[1], Pmode)
    && ! read_only_operand (operands[1], Pmode)
    && ! flag_pic"
   "*
 {
-  if (TARGET_LONG_LOAD_STORE)
+  if (which_alternative == 0 || REGNO (operands[0]) == 1)
     return \"addil NLR'%H1,%%r27\;ldo N'%H1(%%r1),%%r1\";
   else
+    return \"stw %%r1,-16(%%r30)\;addil NLR'%H1,%%r27\;ldo N'%H1(%%r1),%0\;ldw 
-16(%%r30),%%r1\";
+}"
+  [(set_attr "type" "multi,multi")
+   (set_attr "length" "8,16")])
+
+(define_insn ""
+  [(set (match_operand:SI 0 "register_operand" "=a,!???????????????r")
+       (high:SI (match_operand 1 "" "")))]
+  "!TARGET_LONG_LOAD_STORE
+   && symbolic_operand (operands[1], Pmode)
+   && ! function_label_operand (operands[1], Pmode)
+   && ! read_only_operand (operands[1], Pmode)
+   && ! flag_pic"
+  "*
+{
+  if (which_alternative == 0 || REGNO (operands[0]) == 1)
     return \"addil LR'%H1,%%r27\";
+  else
+    return \"stw %%r1,-16(%%r30)\;addil LR'%H1,%%r27\;copy %%r1,%0\;ldw 
-16(%%r30),%%r1\";
 }"
-  [(set_attr "type" "binary")
-   (set (attr "length")
-      (if_then_else (not (match_test "TARGET_LONG_LOAD_STORE"))
-                   (const_int 4)
-                   (const_int 8)))])
+  [(set_attr "type" "binary,multi")
+   (set_attr "length" "4,16")])
 
+;; Optimize non-PIC HIGH + LO_SUM when LRA choses a general register
+;; other than %r1, but %r1 is actually dead.  This avoids saving and
+;; restoring %r1 in the frame marker.
+(define_peephole2
+  [(set (match_operand:SI 0 "register_operand")
+       (high:SI (match_operand 1 "")))
+   (set (match_operand:SI 2 "register_operand")
+       (lo_sum:SI (match_dup 0)
+                  (match_dup 1)))]
+  "!TARGET_64BIT
+   && !flag_pic
+   && REGNO (operands[0]) != 1
+   && peep2_reg_dead_p (2, operands[0])
+   && peep2_regno_dead_p (0, 1)"
+  [(set (reg:SI 1) (high:SI (match_dup 1)))
+   (set (match_dup 2) (lo_sum:SI (reg:SI 1) (match_dup 1)))]
+  "")
+
+;; Same optimization for standalone non-PIC HIGH when %r1 is dead.
+(define_peephole2
+  [(set (match_operand:SI 0 "register_operand")
+       (high:SI (match_operand 1 "")))]
+  "!TARGET_64BIT
+   && !flag_pic
+   && REGNO (operands[0]) != 1
+   && peep2_regno_dead_p (0, 1)"
+  [(set (reg:SI 1) (high:SI (match_dup 1)))
+   (set (match_dup 0) (reg:SI 1))]
+  "")
 
 ;; This is for use in the prologue/epilogue code.  We need it
 ;; to add large constants to a stack pointer or frame pointer.
@@ -2801,8 +2975,9 @@
 (define_insn ""
   [(set (match_operand:SI 0 "register_operand" "=r")
        (high:SI (match_operand 1 "" "")))]
-  "(!flag_pic || !symbolic_operand (operands[1], Pmode))
-    && !pa_is_function_label_plus_const (operands[1])"
+  "(!symbolic_operand (operands[1], Pmode)
+    || (!flag_pic && read_only_operand (operands[1], Pmode)))
+   && !pa_is_function_label_plus_const (operands[1])"
   "*
 {
   if (symbolic_operand (operands[1], Pmode))
@@ -7655,7 +7830,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
 (define_insn "call_symref"
   [(call (mem:SI (match_operand 0 "call_operand_address" ""))
         (match_operand 1 "" "i"))
-   (clobber (reg:SI 1))
    (clobber (reg:SI 2))
    (use (const_int 0))]
   "!TARGET_PORTABLE_RUNTIME && !TARGET_64BIT"
@@ -7672,7 +7846,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
 (define_insn "call_symref_pic"
   [(call (mem:SI (match_operand 0 "call_operand_address" ""))
         (match_operand 1 "" "i"))
-   (clobber (reg:SI 1))
    (clobber (reg:SI 2))
    (clobber (match_operand 2))
    (use (reg:SI 19))
@@ -7692,7 +7865,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
 (define_split
   [(parallel [(call (mem:SI (match_operand 0 "call_operand_address" ""))
                    (match_operand 1 "" ""))
-             (clobber (reg:SI 1))
              (clobber (reg:SI 2))
              (clobber (match_operand 2))
              (use (reg:SI 19))
@@ -7702,7 +7874,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
   [(set (match_dup 2) (reg:SI 19))
    (parallel [(call (mem:SI (match_dup 0))
                    (match_dup 1))
-             (clobber (reg:SI 1))
              (clobber (reg:SI 2))
              (use (reg:SI 19))
              (use (const_int 0))])]
@@ -7711,7 +7882,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
 (define_split
   [(parallel [(call (mem:SI (match_operand 0 "call_operand_address" ""))
                    (match_operand 1 "" ""))
-             (clobber (reg:SI 1))
              (clobber (reg:SI 2))
              (clobber (match_operand 2))
              (use (reg:SI 19))
@@ -7720,7 +7890,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
   [(set (match_dup 2) (reg:SI 19))
    (parallel [(call (mem:SI (match_dup 0))
                    (match_dup 1))
-             (clobber (reg:SI 1))
              (clobber (reg:SI 2))
              (use (reg:SI 19))
              (use (const_int 0))])
@@ -7730,7 +7899,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
 (define_insn "*call_symref_pic_post_reload"
   [(call (mem:SI (match_operand 0 "call_operand_address" ""))
         (match_operand 1 "" "i"))
-   (clobber (reg:SI 1))
    (clobber (reg:SI 2))
    (use (reg:SI 19))
    (use (const_int 0))]
@@ -7750,7 +7918,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
 (define_insn "call_symref_64bit"
   [(call (mem:SI (match_operand 0 "call_operand_address" ""))
         (match_operand 1 "" "i"))
-   (clobber (reg:DI 1))
    (clobber (reg:DI 2))
    (clobber (match_operand 2))
    (use (reg:DI 27))
@@ -7771,7 +7938,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
 (define_split
   [(parallel [(call (mem:SI (match_operand 0 "call_operand_address" ""))
                    (match_operand 1 "" ""))
-             (clobber (reg:DI 1))
              (clobber (reg:DI 2))
              (clobber (match_operand 2))
              (use (reg:DI 27))
@@ -7782,7 +7948,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
   [(set (match_dup 2) (reg:DI 27))
    (parallel [(call (mem:SI (match_dup 0))
                    (match_dup 1))
-             (clobber (reg:DI 1))
              (clobber (reg:DI 2))
              (use (reg:DI 27))
              (use (reg:DI 29))
@@ -7792,7 +7957,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
 (define_split
   [(parallel [(call (mem:SI (match_operand 0 "call_operand_address" ""))
                    (match_operand 1 "" ""))
-             (clobber (reg:DI 1))
              (clobber (reg:DI 2))
              (clobber (match_operand 2))
              (use (reg:DI 27))
@@ -7802,7 +7966,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
   [(set (match_dup 2) (reg:DI 27))
    (parallel [(call (mem:SI (match_dup 0))
                    (match_dup 1))
-             (clobber (reg:DI 1))
              (clobber (reg:DI 2))
              (use (reg:DI 27))
              (use (reg:DI 29))
@@ -7813,7 +7976,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
 (define_insn "*call_symref_64bit_post_reload"
   [(call (mem:SI (match_operand 0 "call_operand_address" ""))
         (match_operand 1 "" "i"))
-   (clobber (reg:DI 1))
    (clobber (reg:DI 2))
    (use (reg:DI 27))
    (use (reg:DI 29))
@@ -7831,7 +7993,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
 (define_insn "call_reg"
   [(call (mem:SI (reg:SI 22))
         (match_operand 0 "" "i"))
-   (clobber (reg:SI 1))
    (clobber (reg:SI 2))
    (use (const_int 1))]
   "!TARGET_64BIT"
@@ -7849,7 +8010,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
 (define_insn "call_reg_pic"
   [(call (mem:SI (reg:SI 22))
         (match_operand 0 "" "i"))
-   (clobber (reg:SI 1))
    (clobber (reg:SI 2))
    (clobber (match_operand 1))
    (use (reg:SI 19))
@@ -7869,7 +8029,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
 (define_split
   [(parallel [(call (mem:SI (reg:SI 22))
                    (match_operand 0 "" ""))
-             (clobber (reg:SI 1))
              (clobber (reg:SI 2))
              (clobber (match_operand 1))
              (use (reg:SI 19))
@@ -7879,7 +8038,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
   [(set (match_dup 1) (reg:SI 19))
    (parallel [(call (mem:SI (reg:SI 22))
                    (match_dup 0))
-             (clobber (reg:SI 1))
              (clobber (reg:SI 2))
              (use (reg:SI 19))
              (use (const_int 1))])]
@@ -7888,7 +8046,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
 (define_split
   [(parallel [(call (mem:SI (reg:SI 22))
                    (match_operand 0 "" ""))
-             (clobber (reg:SI 1))
              (clobber (reg:SI 2))
              (clobber (match_operand 1))
              (use (reg:SI 19))
@@ -7897,7 +8054,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
   [(set (match_dup 1) (reg:SI 19))
    (parallel [(call (mem:SI (reg:SI 22))
                    (match_dup 0))
-             (clobber (reg:SI 1))
              (clobber (reg:SI 2))
              (use (reg:SI 19))
              (use (const_int 1))])
@@ -7907,7 +8063,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
 (define_insn "*call_reg_pic_post_reload"
   [(call (mem:SI (reg:SI 22))
         (match_operand 0 "" "i"))
-   (clobber (reg:SI 1))
    (clobber (reg:SI 2))
    (use (reg:SI 19))
    (use (const_int 1))]
@@ -8143,7 +8298,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
   [(set (match_operand 0 "" "")
        (call (mem:SI (match_operand 1 "call_operand_address" ""))
              (match_operand 2 "" "i")))
-   (clobber (reg:SI 1))
    (clobber (reg:SI 2))
    (use (const_int 0))]
   "!TARGET_PORTABLE_RUNTIME && !TARGET_64BIT"
@@ -8162,7 +8316,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
   [(set (match_operand 0 "" "")
        (call (mem:SI (match_operand 1 "call_operand_address" ""))
              (match_operand 2 "" "i")))
-   (clobber (reg:SI 1))
    (clobber (reg:SI 2))
    (clobber (reg:DF 48))
    (use (const_int 1))]
@@ -8181,7 +8334,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
   [(set (match_operand 0 "" "")
        (call (mem:SI (match_operand 1 "call_operand_address" ""))
              (match_operand 2 "" "i")))
-   (clobber (reg:SI 1))
    (clobber (reg:SI 2))
    (clobber (match_operand 3))
    (use (reg:SI 19))
@@ -8202,7 +8354,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
   [(parallel [(set (match_operand 0 "" "")
              (call (mem:SI (match_operand 1 "call_operand_address" ""))
                    (match_operand 2 "" "")))
-             (clobber (reg:SI 1))
              (clobber (reg:SI 2))
              (clobber (match_operand 3))
              (use (reg:SI 19))
@@ -8213,7 +8364,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
    (parallel [(set (match_dup 0)
              (call (mem:SI (match_dup 1))
                    (match_dup 2)))
-             (clobber (reg:SI 1))
              (clobber (reg:SI 2))
              (use (reg:SI 19))
              (use (const_int 0))])]
@@ -8223,7 +8373,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
   [(parallel [(set (match_operand 0 "" "")
              (call (mem:SI (match_operand 1 "call_operand_address" ""))
                    (match_operand 2 "" "")))
-             (clobber (reg:SI 1))
              (clobber (reg:SI 2))
              (clobber (match_operand 3))
              (use (reg:SI 19))
@@ -8233,7 +8382,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
    (parallel [(set (match_dup 0)
              (call (mem:SI (match_dup 1))
                    (match_dup 2)))
-             (clobber (reg:SI 1))
              (clobber (reg:SI 2))
              (use (reg:SI 19))
              (use (const_int 0))])
@@ -8244,7 +8392,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
   [(set (match_operand 0 "" "")
        (call (mem:SI (match_operand 1 "call_operand_address" ""))
              (match_operand 2 "" "i")))
-   (clobber (reg:SI 1))
    (clobber (reg:SI 2))
    (use (reg:SI 19))
    (use (const_int 0))]
@@ -8264,7 +8411,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
   [(set (match_operand 0 "" "")
        (call (mem:SI (match_operand 1 "call_operand_address" ""))
              (match_operand 2 "" "i")))
-   (clobber (reg:SI 1))
    (clobber (reg:SI 2))
    (clobber (reg:DF 48))
    (clobber (match_operand 3))
@@ -8286,7 +8432,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
   [(parallel [(set (match_operand 0 "" "")
              (call (mem:SI (match_operand 1 "call_operand_address" ""))
                    (match_operand 2 "" "")))
-             (clobber (reg:SI 1))
              (clobber (reg:SI 2))
              (clobber (reg:DF 48))
              (clobber (match_operand 3))
@@ -8298,7 +8443,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
    (parallel [(set (match_dup 0)
              (call (mem:SI (match_dup 1))
                    (match_dup 2)))
-             (clobber (reg:SI 1))
              (clobber (reg:SI 2))
              (clobber (reg:DF 48))
              (use (reg:SI 19))
@@ -8309,7 +8453,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
   [(parallel [(set (match_operand 0 "" "")
              (call (mem:SI (match_operand 1 "call_operand_address" ""))
                    (match_operand 2 "" "")))
-             (clobber (reg:SI 1))
              (clobber (reg:SI 2))
              (clobber (reg:DF 48))
              (clobber (match_operand 3))
@@ -8320,7 +8463,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
    (parallel [(set (match_dup 0)
              (call (mem:SI (match_dup 1))
                    (match_dup 2)))
-             (clobber (reg:SI 1))
              (clobber (reg:SI 2))
              (clobber (reg:DF 48))
              (use (reg:SI 19))
@@ -8332,7 +8474,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
   [(set (match_operand 0 "" "")
        (call (mem:SI (match_operand 1 "call_operand_address" ""))
              (match_operand 2 "" "i")))
-   (clobber (reg:SI 1))
    (clobber (reg:SI 2))
    (clobber (reg:DF 48))
    (use (reg:SI 19))
@@ -8354,7 +8495,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
   [(set (match_operand 0 "" "")
        (call (mem:SI (match_operand 1 "call_operand_address" ""))
              (match_operand 2 "" "i")))
-   (clobber (reg:DI 1))
    (clobber (reg:DI 2))
    (clobber (match_operand 3))
    (use (reg:DI 27))
@@ -8376,7 +8516,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
   [(parallel [(set (match_operand 0 "" "")
              (call (mem:SI (match_operand 1 "call_operand_address" ""))
                    (match_operand 2 "" "")))
-             (clobber (reg:DI 1))
              (clobber (reg:DI 2))
              (clobber (match_operand 3))
              (use (reg:DI 27))
@@ -8388,7 +8527,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
    (parallel [(set (match_dup 0)
              (call (mem:SI (match_dup 1))
                    (match_dup 2)))
-             (clobber (reg:DI 1))
              (clobber (reg:DI 2))
              (use (reg:DI 27))
              (use (reg:DI 29))
@@ -8399,7 +8537,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
   [(parallel [(set (match_operand 0 "" "")
              (call (mem:SI (match_operand 1 "call_operand_address" ""))
                    (match_operand 2 "" "")))
-             (clobber (reg:DI 1))
              (clobber (reg:DI 2))
              (clobber (match_operand 3))
              (use (reg:DI 27))
@@ -8410,7 +8547,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
    (parallel [(set (match_dup 0)
              (call (mem:SI (match_dup 1))
                    (match_dup 2)))
-             (clobber (reg:DI 1))
              (clobber (reg:DI 2))
              (use (reg:DI 27))
              (use (reg:DI 29))
@@ -8422,7 +8558,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
   [(set (match_operand 0 "" "")
        (call (mem:SI (match_operand 1 "call_operand_address" ""))
              (match_operand 2 "" "i")))
-   (clobber (reg:DI 1))
    (clobber (reg:DI 2))
    (use (reg:DI 27))
    (use (reg:DI 29))
@@ -8442,7 +8577,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
   [(set (match_operand 0 "" "")
        (call (mem:SI (match_operand 1 "call_operand_address" ""))
              (match_operand 2 "" "i")))
-   (clobber (reg:DI 1))
    (clobber (reg:DI 2))
    (clobber (reg:DF 40))
    (clobber (match_operand 3))
@@ -8465,7 +8599,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
   [(parallel [(set (match_operand 0 "" "")
              (call (mem:SI (match_operand 1 "call_operand_address" ""))
                    (match_operand 2 "" "")))
-             (clobber (reg:DI 1))
              (clobber (reg:DI 2))
              (clobber (reg:DF 40))
              (clobber (match_operand 3))
@@ -8478,7 +8611,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
    (parallel [(set (match_dup 0)
              (call (mem:SI (match_dup 1))
                    (match_dup 2)))
-             (clobber (reg:DI 1))
              (clobber (reg:DI 2))
              (clobber (reg:DF 40))
              (use (reg:DI 27))
@@ -8490,7 +8622,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
   [(parallel [(set (match_operand 0 "" "")
              (call (mem:SI (match_operand 1 "call_operand_address" ""))
                    (match_operand 2 "" "")))
-             (clobber (reg:DI 1))
              (clobber (reg:DI 2))
              (clobber (reg:DF 40))
              (clobber (match_operand 3))
@@ -8502,7 +8633,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
    (parallel [(set (match_dup 0)
              (call (mem:SI (match_dup 1))
                    (match_dup 2)))
-             (clobber (reg:DI 1))
              (clobber (reg:DI 2))
              (clobber (reg:DF 40))
              (use (reg:DI 27))
@@ -8515,7 +8645,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
   [(set (match_operand 0 "" "")
        (call (mem:SI (match_operand 1 "call_operand_address" ""))
              (match_operand 2 "" "i")))
-   (clobber (reg:DI 1))
    (clobber (reg:DI 2))
    (clobber (reg:DF 40))
    (use (reg:DI 27))
@@ -8535,7 +8664,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
   [(set (match_operand 0 "" "")
        (call (mem:SI (reg:SI 22))
              (match_operand 1 "" "i")))
-   (clobber (reg:SI 1))
    (clobber (reg:SI 2))
    (use (const_int 1))]
   "!TARGET_64BIT"
@@ -8554,7 +8682,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
   [(set (match_operand 0 "" "")
        (call (mem:SI (reg:SI 22))
              (match_operand 1 "" "i")))
-   (clobber (reg:SI 1))
    (clobber (reg:SI 2))
    (clobber (match_operand 2))
    (use (reg:SI 19))
@@ -8575,7 +8702,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
   [(parallel [(set (match_operand 0 "" "")
                   (call (mem:SI (reg:SI 22))
                         (match_operand 1 "" "")))
-             (clobber (reg:SI 1))
              (clobber (reg:SI 2))
              (clobber (match_operand 2))
              (use (reg:SI 19))
@@ -8586,7 +8712,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
    (parallel [(set (match_dup 0)
                   (call (mem:SI (reg:SI 22))
                         (match_dup 1)))
-             (clobber (reg:SI 1))
              (clobber (reg:SI 2))
              (use (reg:SI 19))
              (use (const_int 1))])]
@@ -8596,7 +8721,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
   [(parallel [(set (match_operand 0 "" "")
                   (call (mem:SI (reg:SI 22))
                         (match_operand 1 "" "")))
-             (clobber (reg:SI 1))
              (clobber (reg:SI 2))
              (clobber (match_operand 2))
              (use (reg:SI 19))
@@ -8606,7 +8730,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
    (parallel [(set (match_dup 0)
                   (call (mem:SI (reg:SI 22))
                         (match_dup 1)))
-             (clobber (reg:SI 1))
              (clobber (reg:SI 2))
              (use (reg:SI 19))
              (use (const_int 1))])
@@ -8617,7 +8740,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
   [(set (match_operand 0 "" "")
        (call (mem:SI (reg:SI 22))
              (match_operand 1 "" "i")))
-   (clobber (reg:SI 1))
    (clobber (reg:SI 2))
    (use (reg:SI 19))
    (use (const_int 1))]
@@ -8960,7 +9082,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
 (define_insn "sibcall_internal_symref"
   [(call (mem:SI (match_operand 0 "call_operand_address" ""))
         (match_operand 1 "" "i"))
-   (clobber (reg:SI 1))
    (use (reg:SI 2))
    (use (const_int 0))]
   "!TARGET_PORTABLE_RUNTIME && !TARGET_64BIT"
@@ -8977,7 +9098,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
 (define_insn "sibcall_internal_symref_64bit"
   [(call (mem:SI (match_operand 0 "call_operand_address" ""))
         (match_operand 1 "" "i"))
-   (clobber (reg:DI 1))
    (use (reg:DI 2))
    (use (const_int 0))]
   "TARGET_64BIT"
@@ -9047,7 +9167,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
   [(set (match_operand 0 "" "")
        (call (mem:SI (match_operand 1 "call_operand_address" ""))
              (match_operand 2 "" "i")))
-   (clobber (reg:SI 1))
    (use (reg:SI 2))
    (use (const_int 0))]
   "!TARGET_PORTABLE_RUNTIME && !TARGET_64BIT"
@@ -9065,7 +9184,6 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
   [(set (match_operand 0 "" "")
        (call (mem:SI (match_operand 1 "call_operand_address" ""))
              (match_operand 2 "" "i")))
-   (clobber (reg:DI 1))
    (use (reg:DI 2))
    (use (const_int 0))]
   "TARGET_64BIT"

Reply via email to