https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89310
luoxhu at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |luoxhu at gcc dot gnu.org
--- Comment #3 from luoxhu at gcc dot gnu.org ---
rs6000.md:
(define_insn_and_split "movsf_from_si"
...
"&& reload_completed
&& vsx_reg_sfsubreg_ok (operands[0], SFmode)
&& int_reg_operand_not_pseudo (operands[1], SImode)"
[(const_int 0)
...
/* Move SF value to upper 32-bits for xscvspdpn. */
emit_insn (gen_ashldi3 (op2, op1_di, GEN_INT (32)));
emit_insn (gen_p8_mtvsrd_sf (op0, op2));
emit_insn (gen_vsx_xscvspdpn_directmove (op0, op0));
DONE
The split seems inevitable as reload_completed is true here, can this
lshrdi3+ashldi3 be optimized by peephole?
r9 is DImode, is there any benefit of using mtvsrw[az] instead of mtvsrd?
Or could we replace the 3 instructions with better sequence? Thanks.