From: Segher Boessenkool Date: Mon, 1 Jul 2019 18:39:52 +0000 (+0200) Subject: rs6000.md (eh_set_lr_): Make this a parameterized name. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=15f0523424fcb7eac1c6219947f74d843714aea8;p=gcc.git rs6000.md (eh_set_lr_): Make this a parameterized name. @eh_set_lr_ * config/rs6000/rs6000.md (eh_set_lr_): Make this a parameterized name. (eh_return): Use that name. Simplify. From-SVN: r272900 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5da03c3a89f..63af1c86f89 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2019-07-01 Segher Boessenkool + + * config/rs6000/rs6000.md (eh_set_lr_): Make this a parameterized + name. + (eh_return): Use that name. Simplify. + 2019-07-01 Segher Boessenkool * config/rs6000/rs6000.md (ctr): Make this a parameterized name. diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index 56f5350210d..6470d95f191 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -13190,15 +13190,12 @@ [(use (match_operand 0 "general_operand"))] "" { - if (TARGET_32BIT) - emit_insn (gen_eh_set_lr_si (operands[0])); - else - emit_insn (gen_eh_set_lr_di (operands[0])); + emit_insn (gen_eh_set_lr (Pmode, operands[0])); DONE; }) ; We can't expand this before we know where the link register is stored. -(define_insn_and_split "eh_set_lr_" +(define_insn_and_split "@eh_set_lr_" [(unspec_volatile [(match_operand:P 0 "register_operand" "r")] UNSPECV_EH_RR) (clobber (match_scratch:P 1 "=&b"))] ""