https://gcc.gnu.org/g:d74da219aac6bf098bd81b98ffb0ea87b26bf332
commit d74da219aac6bf098bd81b98ffb0ea87b26bf332 Author: Michael Meissner <[email protected]> Date: Tue Oct 21 21:26:36 2025 -0400 Allow loading up 16-bit floating point constants even if we do not have hardware support. 2025-10-21 Michael Meissner <[email protected]> gcc/ * config/rs6000/rs6000.cc (rs6000_load_constant_and_splat): Allow loading up 16-bit floating point constants even if we do not have hardware support. Diff: --- gcc/config/rs6000/rs6000.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/rs6000/rs6000.cc b/gcc/config/rs6000/rs6000.cc index 1b3fd6edf61c..b83b9e4f6040 100644 --- a/gcc/config/rs6000/rs6000.cc +++ b/gcc/config/rs6000/rs6000.cc @@ -23114,7 +23114,7 @@ rs6000_load_constant_and_splat (machine_mode mode, REAL_VALUE_TYPE dconst) { rtx reg; - if (mode == SFmode || mode == DFmode || FP16_HW_SCALAR_MODE_P (mode)) + if (mode == SFmode || mode == DFmode || FP16_SCALAR_MODE_P (mode)) { rtx d = const_double_from_real_value (dconst, mode); reg = force_reg (mode, d);
