From d5e6e133bb9eeec71626279f0f9ed4bbdda4d15c Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 6 May 2015 22:42:19 +0930 Subject: [PATCH] re PR target/66033 (rs6000 nops removed by rtl_dce) PR target/66033 * config/rs6000/rs6000.md (nop): Use an unspec pattern. (UNSPEC_NOP): Define. (reload_vsx_from_gpr): Add missing DONE. (reload_gpr_from_vsx): Likewise. * config/rs6000/vsx.md (vsx_mul_v2di): Likewise. (vsx_div_v2di, vsx_udiv_v2di): Likewise. From-SVN: r222851 --- gcc/ChangeLog | 10 ++++++++++ gcc/config/rs6000/rs6000.md | 5 ++++- gcc/config/rs6000/vsx.md | 3 +++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 07ea864db7b..24b40750898 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,13 @@ +2015-05-06 Alan Modra + + PR target/66033 + * config/rs6000/rs6000.md (nop): Use an unspec pattern. + (UNSPEC_NOP): Define. + (reload_vsx_from_gpr): Add missing DONE. + (reload_gpr_from_vsx): Likewise. + * config/rs6000/vsx.md (vsx_mul_v2di): Likewise. + (vsx_div_v2di, vsx_udiv_v2di): Likewise. + 2015-05-06 Christian Bruel PR target/66015 diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index 0178bf45b00..2d15d71cc88 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -121,6 +121,7 @@ UNSPEC_LFIWAX UNSPEC_LFIWZX UNSPEC_FCTIWUZ + UNSPEC_NOP UNSPEC_GRP_END_NOP UNSPEC_P8V_FMRGOW UNSPEC_P8V_MTVSRWZ @@ -8796,6 +8797,7 @@ emit_insn (gen_p8_mtvsrd_1 (tmp, gpr_hi_reg)); emit_insn (gen_p8_mtvsrd_2 (tmp, gpr_lo_reg)); emit_insn (gen_p8_xxpermdi_ (dest, tmp)); + DONE; } [(set_attr "length" "12") (set_attr "type" "three")]) @@ -8872,6 +8874,7 @@ emit_insn (gen_p8_mfvsrd_3_ (gpr_hi_reg, src)); emit_insn (gen_vsx_xxpermdi_ (tmp, src, src, GEN_INT (3))); emit_insn (gen_p8_mfvsrd_3_ (gpr_lo_reg, tmp)); + DONE; } [(set_attr "length" "12") (set_attr "type" "three")]) @@ -12888,7 +12891,7 @@ [(set_attr "type" "jmpreg")]) (define_insn "nop" - [(const_int 0)] + [(unspec [(const_int 0)] UNSPEC_NOP)] "" "nop") diff --git a/gcc/config/rs6000/vsx.md b/gcc/config/rs6000/vsx.md index 2988c728646..787f96ae245 100644 --- a/gcc/config/rs6000/vsx.md +++ b/gcc/config/rs6000/vsx.md @@ -780,6 +780,7 @@ emit_insn (gen_vsx_extract_v2di (op4, op2, GEN_INT (1))); emit_insn (gen_muldi3 (op3, op3, op4)); emit_insn (gen_vsx_concat_v2di (op0, op5, op3)); + DONE; }" [(set_attr "type" "mul")]) @@ -817,6 +818,7 @@ emit_insn (gen_vsx_extract_v2di (op4, op2, GEN_INT (1))); emit_insn (gen_divdi3 (op3, op3, op4)); emit_insn (gen_vsx_concat_v2di (op0, op5, op3)); + DONE; }" [(set_attr "type" "div")]) @@ -844,6 +846,7 @@ emit_insn (gen_vsx_extract_v2di (op4, op2, GEN_INT (1))); emit_insn (gen_udivdi3 (op3, op3, op4)); emit_insn (gen_vsx_concat_v2di (op0, op5, op3)); + DONE; }" [(set_attr "type" "div")]) -- 2.30.2