public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/meissner/heads/work067)] Fix SFmode subreg of TImode
@ 2021-09-04 12:49 Michael Meissner
0 siblings, 0 replies; only message in thread
From: Michael Meissner @ 2021-09-04 12:49 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:92a89a8569a83fdb7ddd8144783f98ffb390b538
commit 92a89a8569a83fdb7ddd8144783f98ffb390b538
Author: Michael Meissner <meissner@linux.ibm.com>
Date: Sat Sep 4 08:48:46 2021 -0400
Fix SFmode subreg of TImode
2021-09-04 Michael Meissner <meissner@linux.ibm.com>
gcc/
* config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Deal
with SUBREGs of TImode and DImode.
Diff:
---
gcc/config/rs6000/rs6000.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index b9ebd56c993..5c681c1f15c 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -10942,6 +10942,16 @@ rs6000_emit_move_si_sf_subreg (rtx dest, rtx source, machine_mode mode)
return true;
}
+ if (mode == SFmode && GET_MODE_SIZE (inner_mode) > 4)
+ {
+ rtx tmp = gen_reg_rtx (SImode);
+
+ debug_rtx (source);
+ emit_move_insn (tmp, gen_lowpart (SImode, source));
+ emit_insn (gen_movsf_from_si (dest, tmp));
+ return true;
+ }
+
if (mode == SFmode && inner_mode == SImode)
{
emit_insn (gen_movsf_from_si (dest, inner_source));
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-09-04 12:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-04 12:49 [gcc(refs/users/meissner/heads/work067)] Fix SFmode subreg of TImode 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).