[04/12] @indirect_jump<mode>_nospec

Message ID 3f0372ef102f9ade22514613d9d26d4b58a2bd55.1561994239.git.segher@kernel.crashing.org
State New
Headers show
Series
  • rs6000: Use parameterised names
Related show

Commit Message

Segher Boessenkool July 1, 2019, 5:59 p.m.
2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>

	* config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
	parameterized name.
	(indirect_jump): Use that name.  Simplify.

---
 gcc/config/rs6000/rs6000.md | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

-- 
1.8.3.1

Patch

diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md
index ca8b0c0..d665316 100644
--- a/gcc/config/rs6000/rs6000.md
+++ b/gcc/config/rs6000/rs6000.md
@@ -12410,10 +12410,7 @@  (define_expand "indirect_jump"
 {
   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;
   }
 })
@@ -12425,7 +12422,7 @@  (define_insn "*indirect_jump<mode>"
   "b%T0"
   [(set_attr "type" "jmpreg")])
 
-(define_insn "indirect_jump<mode>_nospec"
+(define_insn "@indirect_jump<mode>_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"