From: Kewen Lin Date: Tue, 21 May 2024 02:01:06 +0000 (-0500) Subject: rs6000: Clean up TF and TD check with FLOAT128_2REG_P X-Git-Tag: basepoints/gcc-16~8849 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2eb1dff8b34a8a7da02b988878172d1b8f203d96;p=thirdparty%2Fgcc.git rs6000: Clean up TF and TD check with FLOAT128_2REG_P Commit r6-2116-g2c83faf86827bf did some clean up on TFmode and TFmode check with FLOAT128_2REG_P, but it missed to update an assertion, this patch is to make it align. btw, it's noticed when I'm making a patch to get rid of TFmode. gcc/ChangeLog: * config/rs6000/rs6000-call.cc (rs6000_darwin64_record_arg_recurse): Clean up TFmode and TDmode check with FLOAT128_2REG_P. --- diff --git a/gcc/config/rs6000/rs6000-call.cc b/gcc/config/rs6000/rs6000-call.cc index 1f8f93a2ee7..a039ff75f3c 100644 --- a/gcc/config/rs6000/rs6000-call.cc +++ b/gcc/config/rs6000/rs6000-call.cc @@ -1391,7 +1391,7 @@ rs6000_darwin64_record_arg_recurse (CUMULATIVE_ARGS *cum, const_tree type, if (cum->fregno + n_fpreg > FP_ARG_MAX_REG + 1) { gcc_assert (cum->fregno == FP_ARG_MAX_REG - && (mode == TFmode || mode == TDmode)); + && FLOAT128_2REG_P (mode)); /* Long double or _Decimal128 split over regs and memory. */ mode = DECIMAL_FLOAT_MODE_P (mode) ? DDmode : DFmode; cum->use_stack=1;