From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1005) id 2475D3858C54; Thu, 14 Jul 2022 02:13:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2475D3858C54 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Michael Meissner To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/meissner/heads/work094)] Update ChangeLog.meissner. X-Act-Checkin: gcc X-Git-Author: Michael Meissner X-Git-Refname: refs/users/meissner/heads/work094 X-Git-Oldrev: f7ef4f8f3f4b7b22fed45caeef8148207b1290eb X-Git-Newrev: 93c3fd0c2736652b0725ae113daa09a12cb4a66a Message-Id: <20220714021310.2475D3858C54@sourceware.org> Date: Thu, 14 Jul 2022 02:13:10 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jul 2022 02:13:10 -0000 https://gcc.gnu.org/g:93c3fd0c2736652b0725ae113daa09a12cb4a66a commit 93c3fd0c2736652b0725ae113daa09a12cb4a66a Author: Michael Meissner Date: Wed Jul 13 22:12:39 2022 -0400 Update ChangeLog.meissner. 2022-07-13 Michael Meissner gcc/ * ChangeLog.meissner: Update. Diff: --- gcc/ChangeLog.meissner | 75 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) diff --git a/gcc/ChangeLog.meissner b/gcc/ChangeLog.meissner index 153591df175..d19113d7487 100644 --- a/gcc/ChangeLog.meissner +++ b/gcc/ChangeLog.meissner @@ -1,3 +1,78 @@ +==================== work094, patch #6 + +__float128 and __ibm128 use different types from long double. + +2022-07-13 Michael Meissner + +gcc/ + + * config/rs6000/rs6000-builtin.cc (rs6000_init_builtins): Always + create a new tree node for __ibm128, even if long double uses the + IBM 128-bit format. Always create a new tree node for __float128, + even if long double uses the IEEE 128-bit format. + (rs6000_expand_builtin): Remove all of the code that changed + KFmode built-in functions into TFmode, since these functions now + support overloading between KFmode and TFmode. + * config/rs6000/rs6000-c.cc (rs6000_builtin_type_compatible): + Don't consider _Float128 and long double under + -mabi=ieeelongdouble to be compatible for built-in functions. Use + overloading instead. + * config/rs6000/rs600.cc (reg_offset_addressing_ok_p): Allow + IFmode to use offset addresses. + (init_float128_ibm): Remove checks for hardware floating point for + the IBM 128-bit comparisons. + (init_float128_ieee): Do not create __mulkc3 and __divkc3 since + __float128 always creates these functions. + (rs6000_init_libfuncs): Create complex multiply and divide for + long double if long double uses the IEEE 128-bit encoding. + (rs6000_mangle_type): Mangle __ibm128 into "u8__ibm128". + (rs6000_scalar_mode_supported_p): Allow __ibm128 even if we don't + support _Float128. + (rs6000_libgcc_floating_mode_supported_p): Allow KFmode if IEEE + 128-bit floating point is supported. Allow IFmode if either IEEE + 128-bit floating point is supported or long double is IBM + 128-bit. + (rs6000_floatn_mode): Always return KFmode for IEEE 128-bit. Do + not return TFmode, even if long double uses the IEEE 128-bit + format. + (rs6000_c_mode_for_suffix): The 'q' suffix always uses KFmode, + even if long double uses the IEEE 128-bit encoding. + * config/rs6000/rs6000.h (FLOAT128_IBM_P): Remove checks for + -mhard-float. + (TARGET_IBM128): New macro. + * config/rs6000/rs6000.md (IFKF): Delete. + (IFKF_reg): Delete. + (@extenddf2_fprs): Remove extra test for + TARGET_LONG_DOUBLE_128. + (@extenddf_vsx): Likewise. + (extendiftf2): Allow __ibm128 even if _Float128 is not supported. + (extendkfif2): New insn. + (extendtfkf2): Allow __ibm128 even if _Float128 is not supported. + (extendtfif2): Likewise. + (trunckfif2): New insn. + (trunctfif2): Allow __ibm128 even if _Float128 is not supported. + (extendkftf2_internal): Split extendtf2_internal and + extendtf2_internal into separate insns that handle either + conversions between IEEE 128-bit types or between IBM 128-bit + types. Set the type and insn length correctly. + (extendtfkf2_internal): Likewise. + (extendiftf2_internal): Likewise. + (extendtfif2_internal): Likewise. + +gcc/testsuite/ + + * gcc.target/powerpc/mulkd3-2.c: Update test. + * gcc.target/powerpc/divkd3-2.c: Likewise. + +libgcc/ + + * config/rs6000/float128-ifunc.c (__multc3_ieee128): Add ifunc + support. + (__divtc3_ieee128): Likewise. + * config/rs6000/quad-float128.h (__multc3_ieee128): Add + Declaration. + (__divtc3_ieee128): Likewise. + ==================== work094, patch #5 Make IEEE 128-bit test data built-in functions overloaded.