diff options
Diffstat (limited to 'gcc/config/nvptx/nvptx.c')
-rw-r--r-- | gcc/config/nvptx/nvptx.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/gcc/config/nvptx/nvptx.c b/gcc/config/nvptx/nvptx.c index 53922bc8e85..a434bde73a3 100644 --- a/gcc/config/nvptx/nvptx.c +++ b/gcc/config/nvptx/nvptx.c @@ -842,7 +842,7 @@ nvptx_expand_call (rtx retval, rtx address) { if (!nvptx_register_operand (retval, GET_MODE (retval))) tmp_retval = gen_reg_rtx (GET_MODE (retval)); - t = gen_rtx_SET (VOIDmode, tmp_retval, t); + t = gen_rtx_SET (tmp_retval, t); } XVECEXP (pat, 0, 0) = t; if (!REG_P (callee) @@ -1061,7 +1061,7 @@ nvptx_expand_compare (rtx compare) rtx pred = gen_reg_rtx (BImode); rtx cmp = gen_rtx_fmt_ee (GET_CODE (compare), BImode, XEXP (compare, 0), XEXP (compare, 1)); - emit_insn (gen_rtx_SET (VOIDmode, pred, cmp)); + emit_insn (gen_rtx_SET (pred, cmp)); return gen_rtx_NE (BImode, pred, const0_rtx); } @@ -1101,9 +1101,8 @@ nvptx_maybe_convert_symbolic_operand (rtx orig_op) : as == ADDR_SPACE_CONST ? UNSPEC_FROM_CONST : UNSPEC_FROM_PARAM); rtx dest = gen_reg_rtx (Pmode); - emit_insn (gen_rtx_SET (VOIDmode, dest, - gen_rtx_UNSPEC (Pmode, gen_rtvec (1, orig_op), - code))); + emit_insn (gen_rtx_SET (dest, gen_rtx_UNSPEC (Pmode, gen_rtvec (1, orig_op), + code))); return dest; } @@ -1956,7 +1955,7 @@ nvptx_reorg (void) else code = TRUNCATE; - rtx pat = gen_rtx_SET (VOIDmode, new_reg, + rtx pat = gen_rtx_SET (new_reg, gen_rtx_fmt_e (code, outer_mode, inner)); emit_insn_before (pat, insn); } @@ -1970,7 +1969,7 @@ nvptx_reorg (void) else code = ZERO_EXTEND; - rtx pat = gen_rtx_SET (VOIDmode, inner, + rtx pat = gen_rtx_SET (inner, gen_rtx_fmt_e (code, inner_mode, new_reg)); emit_insn_after (pat, insn); } |