+2019-06-18 Tom de Vries <tdevries@suse.de>
+
+ * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
+ * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
+ * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"): Rename to ...
+ (define_insn "@set_softstack_<mode>"): ... this.
+ (define_insn "omp_simt_enter_<mode>"): Rename to ...
+ (define_insn "@omp_simt_enter_<mode>"): ... this.
+ (define_insn "omp_simt_exit_<mode>"): Rename to ...
+ (define_insn "@omp_simt_exit_<mode>"): ... this.
+
2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
* tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
""
{
if (TARGET_SOFT_STACK)
- emit_insn (gen_set_softstack_insn (gen_rtx_REG (Pmode,
- SOFTSTACK_PREV_REGNUM)));
+ emit_insn (gen_set_softstack (Pmode, gen_rtx_REG (Pmode,
+ SOFTSTACK_PREV_REGNUM)));
emit_jump_insn (gen_return ());
DONE;
})
{
emit_move_insn (stack_pointer_rtx,
gen_rtx_MINUS (Pmode, stack_pointer_rtx, operands[1]));
- emit_insn (gen_set_softstack_insn (stack_pointer_rtx));
+ emit_insn (gen_set_softstack (Pmode, stack_pointer_rtx));
emit_move_insn (operands[0], virtual_stack_dynamic_rtx);
DONE;
}
DONE;
})
-(define_insn "set_softstack_<mode>"
+(define_insn "@set_softstack_<mode>"
[(unspec [(match_operand:P 0 "nvptx_register_operand" "R")]
UNSPEC_SET_SOFTSTACK)]
"TARGET_SOFT_STACK"
if (TARGET_SOFT_STACK)
{
emit_move_insn (operands[0], operands[1]);
- emit_insn (gen_set_softstack_insn (operands[0]));
+ emit_insn (gen_set_softstack (Pmode, operands[0]));
}
DONE;
})
;; Patterns for OpenMP SIMD-via-SIMT lowering
-(define_insn "omp_simt_enter_<mode>"
+(define_insn "@omp_simt_enter_<mode>"
[(set (match_operand:P 0 "nvptx_register_operand" "=R")
(unspec_volatile:P [(match_operand:P 1 "nvptx_nonmemory_operand" "Ri")
(match_operand:P 2 "nvptx_nonmemory_operand" "Ri")]
cfun->machine->simt_stack_align = MAX (UINTVAL (operands[2]),
cfun->machine->simt_stack_align);
cfun->machine->has_simtreg = true;
- gcc_assert (GET_MODE (operands[0]) == Pmode);
- if (GET_MODE (operands[0]) == DImode)
- emit_insn (gen_omp_simt_enter_di (operands[0], operands[1], operands[2]));
- else if (GET_MODE (operands[0]) == SImode)
- emit_insn (gen_omp_simt_enter_si (operands[0], operands[1], operands[2]));
- else
- gcc_unreachable ();
+ emit_insn (gen_omp_simt_enter (Pmode, operands[0], operands[1], operands[2]));
DONE;
})
[(match_operand 0 "nvptx_register_operand" "R")]
""
{
- gcc_assert (GET_MODE (operands[0]) == Pmode);
- if (GET_MODE (operands[0]) == DImode)
- emit_insn (gen_omp_simt_exit_di (operands[0]));
- else if (GET_MODE (operands[0]) == SImode)
- emit_insn (gen_omp_simt_exit_si (operands[0]));
- else
- gcc_unreachable ();
+ emit_insn (gen_omp_simt_exit (Pmode, operands[0]));
DONE;
})
-(define_insn "omp_simt_exit_<mode>"
+(define_insn "@omp_simt_exit_<mode>"
[(unspec_volatile [(match_operand:P 0 "nvptx_register_operand" "R")]
UNSPECV_SIMT_EXIT)]
""