public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/meissner/heads/work092)] Add __float128 to __ibm128 conversations.
@ 2022-06-24 15:49 Michael Meissner
  0 siblings, 0 replies; only message in thread
From: Michael Meissner @ 2022-06-24 15:49 UTC (permalink / raw)
  To: gcc-cvs

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

commit ce688c334ded6155e51ada69b2d2f943e5260bfa
Author: Michael Meissner <meissner@linux.ibm.com>
Date:   Fri Jun 24 11:49:17 2022 -0400

    Add __float128 to __ibm128 conversations.
    
    In the past, GCC used the long double type for __ibm128 if long double
    used the IBM 128-bit encoding.  Now that we always use a separate internal
    type for __ibm128, it exposed that some conversions were missing.
    
    2022-06-24   Michael Meissner  <meissner@linux.ibm.com>
    
    gcc/
    
            * config/rs6000/rs6000.md (extendkfif2): New insn.
            (trunckfif2): Likewise.

Diff:
---
 gcc/config/rs6000/rs6000.md | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md
index 090dbcff61d..2c862fecf0f 100644
--- a/gcc/config/rs6000/rs6000.md
+++ b/gcc/config/rs6000/rs6000.md
@@ -9085,6 +9085,15 @@
   DONE;
 })
 
+(define_expand "extendkfif2"
+  [(set (match_operand:IF 0 "gpc_reg_operand")
+	(float_extend:IF (match_operand:KF 1 "gpc_reg_operand")))]
+  "TARGET_FLOAT128_TYPE"
+{
+  rs6000_expand_float128_convert (operands[0], operands[1], false);
+  DONE;
+})
+
 (define_expand "extendtfkf2"
   [(set (match_operand:KF 0 "gpc_reg_operand")
 	(float_extend:KF (match_operand:TF 1 "gpc_reg_operand")))]
@@ -9121,6 +9130,15 @@
   DONE;
 })
 
+(define_expand "trunckfif2"
+  [(set (match_operand:IF 0 "gpc_reg_operand")
+	(float_truncate:IF (match_operand:KF 1 "gpc_reg_operand")))]
+  "TARGET_FLOAT128_TYPE"
+{
+  rs6000_expand_float128_convert (operands[0], operands[1], false);
+  DONE;
+})
+
 (define_expand "trunckftf2"
   [(set (match_operand:TF 0 "gpc_reg_operand")
 	(float_truncate:TF (match_operand:KF 1 "gpc_reg_operand")))]


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-06-24 15:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-24 15:49 [gcc(refs/users/meissner/heads/work092)] Add __float128 to __ibm128 conversations Michael Meissner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).