From: Segher Boessenkool <segher@kernel.crashing.org>
To: gcc-patches@gcc.gnu.org
Cc: dje.gcc@gmail.com, "Kewen.Lin" <linkw@linux.vnet.ibm.com>,
Segher Boessenkool <segher@kernel.crashing.org>
Subject: [PATCH] rs6000: Delete FP_ISA3
Date: Thu, 9 Jun 2022 19:38:33 +0000 [thread overview]
Message-ID: <a05aac0a130cd4e09530ebeb6beae4e5495ad6bc.1654803450.git.segher@kernel.crashing.org> (raw)
FP_ISA3 is exactly the same as SFDF, just a less obvious name. So,
let's delete it.
Tested, committed, the works.
Segher
2022-06-09 Segher Boessenkool <segher@kernel.crashing.org>
* config/rs6000/rs6000.md (FP_ISA3): Delete.
(float<QHI:mode><FP_ISA3:mode>2): Rename to...
(float<QHI:mode><SFDF:mode>2): ... this. Adjust.
(*float<QHI:mode><FP_ISA3:mode>2_internal): Rename to...
(*float<QHI:mode><SFDF:mode>2_internal): ... this. Adjust.
(floatuns<QHI:mode><FP_ISA3:mode>2): Rename to...
(floatuns<QHI:mode><SFDF:mode>2): ... this. Adjust.
(*floatuns<QHI:mode><FP_ISA3:mode>2_internal): Rename to...
(*floatuns<QHI:mode><SFDF:mode>2_internal): ... this. Adjust.
---
gcc/config/rs6000/rs6000.md | 31 ++++++++++++++-----------------
1 file changed, 14 insertions(+), 17 deletions(-)
diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md
index 1c125f07e895..c55ee7e171a3 100644
--- a/gcc/config/rs6000/rs6000.md
+++ b/gcc/config/rs6000/rs6000.md
@@ -619,9 +619,6 @@ (define_mode_iterator FLOAT128 [(KF "TARGET_FLOAT128_TYPE")
(define_mode_iterator SIGNBIT [(KF "FLOAT128_VECTOR_P (KFmode)")
(TF "FLOAT128_VECTOR_P (TFmode)")])
-; Iterator for ISA 3.0 supported floating point types
-(define_mode_iterator FP_ISA3 [SF DF])
-
; Which isa is needed for those float instructions?
(define_mode_attr Fisa [(SF "p8v") (DF "*") (DI "*")])
@@ -6012,9 +6009,9 @@ (define_insn_and_split "*floatunssidf2_internal"
;; the vector registers, rather then loading up a GPR, doing a sign/zero
;; extension and then a direct move.
-(define_expand "float<QHI:mode><FP_ISA3:mode>2"
- [(parallel [(set (match_operand:FP_ISA3 0 "vsx_register_operand")
- (float:FP_ISA3
+(define_expand "float<QHI:mode><SFDF:mode>2"
+ [(parallel [(set (match_operand:SFDF 0 "vsx_register_operand")
+ (float:SFDF
(match_operand:QHI 1 "input_operand")))
(clobber (match_scratch:DI 2))
(clobber (match_scratch:DI 3))
@@ -6025,9 +6022,9 @@ (define_expand "float<QHI:mode><FP_ISA3:mode>2"
operands[1] = rs6000_force_indexed_or_indirect_mem (operands[1]);
})
-(define_insn_and_split "*float<QHI:mode><FP_ISA3:mode>2_internal"
- [(set (match_operand:FP_ISA3 0 "vsx_register_operand" "=wa,wa,wa")
- (float:FP_ISA3
+(define_insn_and_split "*float<QHI:mode><SFDF:mode>2_internal"
+ [(set (match_operand:SFDF 0 "vsx_register_operand" "=wa,wa,wa")
+ (float:SFDF
(match_operand:QHI 1 "reg_or_indexed_operand" "v,r,Z")))
(clobber (match_scratch:DI 2 "=v,wa,v"))
(clobber (match_scratch:DI 3 "=X,r,X"))
@@ -6061,14 +6058,14 @@ (define_insn_and_split "*float<QHI:mode><FP_ISA3:mode>2_internal"
emit_insn (gen_extend<QHI:mode>di2 (di, tmp));
}
- emit_insn (gen_floatdi<FP_ISA3:mode>2 (result, di));
+ emit_insn (gen_floatdi<SFDF:mode>2 (result, di));
DONE;
}
[(set_attr "isa" "p9v,*,p9v")])
-(define_expand "floatuns<QHI:mode><FP_ISA3:mode>2"
- [(parallel [(set (match_operand:FP_ISA3 0 "vsx_register_operand")
- (unsigned_float:FP_ISA3
+(define_expand "floatuns<QHI:mode><SFDF:mode>2"
+ [(parallel [(set (match_operand:SFDF 0 "vsx_register_operand")
+ (unsigned_float:SFDF
(match_operand:QHI 1 "input_operand")))
(clobber (match_scratch:DI 2))
(clobber (match_scratch:DI 3))])]
@@ -6078,9 +6075,9 @@ (define_expand "floatuns<QHI:mode><FP_ISA3:mode>2"
operands[1] = rs6000_force_indexed_or_indirect_mem (operands[1]);
})
-(define_insn_and_split "*floatuns<QHI:mode><FP_ISA3:mode>2_internal"
- [(set (match_operand:FP_ISA3 0 "vsx_register_operand" "=wa,wa,wa")
- (unsigned_float:FP_ISA3
+(define_insn_and_split "*floatuns<QHI:mode><SFDF:mode>2_internal"
+ [(set (match_operand:SFDF 0 "vsx_register_operand" "=wa,wa,wa")
+ (unsigned_float:SFDF
(match_operand:QHI 1 "reg_or_indexed_operand" "v,r,Z")))
(clobber (match_scratch:DI 2 "=v,wa,wa"))
(clobber (match_scratch:DI 3 "=X,r,X"))]
@@ -6107,7 +6104,7 @@ (define_insn_and_split "*floatuns<QHI:mode><FP_ISA3:mode>2_internal"
}
}
- emit_insn (gen_floatdi<FP_ISA3:mode>2 (result, di));
+ emit_insn (gen_floatdi<SFDF:mode>2 (result, di));
DONE;
}
[(set_attr "isa" "p9v,*,p9v")])
--
1.8.3.1
reply other threads:[~2022-06-09 19:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a05aac0a130cd4e09530ebeb6beae4e5495ad6bc.1654803450.git.segher@kernel.crashing.org \
--to=segher@kernel.crashing.org \
--cc=dje.gcc@gmail.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=linkw@linux.vnet.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).