From 15f0523424fcb7eac1c6219947f74d843714aea8 Mon Sep 17 00:00:00 2001 From: Segher Boessenkool Date: Mon, 1 Jul 2019 20:39:52 +0200 Subject: [PATCH] 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 --- gcc/ChangeLog | 6 ++++++ gcc/config/rs6000/rs6000.md | 7 ++----- 2 files changed, 8 insertions(+), 5 deletions(-) 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"))] "" -- 2.30.2