https://gcc.gnu.org/g:c467f91b4f4f54939da6328f6ff4d855e2df8354

commit c467f91b4f4f54939da6328f6ff4d855e2df8354
Author: Michael Meissner <[email protected]>
Date:   Tue Oct 20 16:41:13 2026 -0400

    Go back to using emit_move_insn to load constants.
    
    2026-10-20  Michael Meissner  <[email protected]>
    
            * config/rs6000/float16.cc (bfloat16_to_v4sf_split_inner): Go back 
to
            using emit_move_insn to load constants.

Diff:
---
 gcc/config/rs6000/float16.cc | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/gcc/config/rs6000/float16.cc b/gcc/config/rs6000/float16.cc
index cc7183a3026c..c20925bdad98 100644
--- a/gcc/config/rs6000/float16.cc
+++ b/gcc/config/rs6000/float16.cc
@@ -541,11 +541,7 @@ bfloat16_to_v4sf_split_inner (rtx op)
 
       rtx tmp = ops_v4sf[i] = gen_reg_rtx (V4SFmode);
       if (op == CONST0_RTX (SFmode) || op == CONST0_RTX (BFmode))
-       {
-         rtx zero = CONST0_RTX (V4SFmode);
-         rtx insn = emit_insn (gen_rtx_SET (tmp, zero));
-         set_unique_reg_note (insn, REG_EQUIV, zero);
-       }
+       emit_move_insn (tmp, CONST0_RTX (V4SFmode));
 
       else if (CONST_DOUBLE_P (op))
        {
@@ -560,9 +556,7 @@ bfloat16_to_v4sf_split_inner (rtx op)
            }
 
          rtvec v = gen_rtvec (4, sf_op, sf_op, sf_op, sf_op);
-         rtx cv = gen_rtx_CONST_VECTOR (V4SFmode, v);
-         rtx insn = emit_insn (gen_rtx_SET (tmp, cv));
-         set_unique_reg_note (insn, REG_EQUIV, cv);
+         emit_move_insn (tmp, gen_rtx_CONST_VECTOR (V4SFmode, v));
        }
 
       else if (GET_MODE (op) == BFmode)

Reply via email to