From d1fcc7f3afb12b55265c0b8b9522fe257c9a0098 Mon Sep 17 00:00:00 2001 From: Segher Boessenkool Date: Mon, 1 Jul 2019 20:38:21 +0200 Subject: [PATCH] rs6000.md (indirect_jump_nospec): Make this a parameterized name. @indirect_jump_nospec * config/rs6000/rs6000.md (indirect_jump_nospec): Make this a parameterized name. (indirect_jump): Use that name. Simplify. From-SVN: r272898 --- 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 24d4aa07dad..71f9c59f3e3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2019-07-01 Segher Boessenkool + + * config/rs6000/rs6000.md (indirect_jump_nospec): Make this a + parameterized name. + (indirect_jump): Use that name. Simplify. + 2019-07-01 Segher Boessenkool * config/rs6000/rs6000.md (abs2_internal): Make this a diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index 69465ed4e44..d70362eb381 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -12416,10 +12416,7 @@ { if (!rs6000_speculate_indirect_jumps) { rtx ccreg = gen_reg_rtx (CCmode); - if (Pmode == DImode) - emit_jump_insn (gen_indirect_jumpdi_nospec (operands[0], ccreg)); - else - emit_jump_insn (gen_indirect_jumpsi_nospec (operands[0], ccreg)); + emit_jump_insn (gen_indirect_jump_nospec (Pmode, operands[0], ccreg)); DONE; } }) @@ -12431,7 +12428,7 @@ "b%T0" [(set_attr "type" "jmpreg")]) -(define_insn "indirect_jump_nospec" +(define_insn "@indirect_jump_nospec" [(set (pc) (match_operand:P 0 "register_operand" "c,*l")) (clobber (match_operand:CC 1 "cc_reg_operand" "=y,y"))] "!rs6000_speculate_indirect_jumps" -- 2.30.2