public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH]middle-end: replace GET_MODE_WIDER_MODE with GET_MODE_NEXT_MODE
@ 2022-11-15 10:33 Tamar Christina
  2022-11-15 11:58 ` Richard Sandiford
  0 siblings, 1 reply; 6+ messages in thread
From: Tamar Christina @ 2022-11-15 10:33 UTC (permalink / raw)
  To: gcc-patches; +Cc: nd, rguenther, jlaw

[-- Attachment #1: Type: text/plain, Size: 1073 bytes --]

Hi All,

After the fix to the addsub patch yesterday for bootstrap I had only regtested on x86.
While looking today it seemed the new tests were failing, this was caused
by a change in the behavior of the GET_MODE_WIDER_MODE macro on trunk.

This patch fixes that issue. Sorry for the mess, have rebased all branches now.

Bootstrapped Regtested on aarch64-none-linux-gnu and no issues.

Ok for master?

Thanks,
Tamar

gcc/ChangeLog:

	* match.pd: Replace GET_MODE_WIDER_MODE with
	GET_MODE_NEXT_MODE.

--- inline copy of patch -- 
diff --git a/gcc/match.pd b/gcc/match.pd
index 1b0ab7cf60fa4772fbe8304c622b0b8fab1bdefa..28191a992039c6f3a1dab5f7c0e35dd58dc47092 100644
--- a/gcc/match.pd
+++ b/gcc/match.pd
@@ -7997,7 +7997,7 @@ and,
        machine_mode wide_mode;
      }
      (if (sel.series_p (0, 2, 0, 2)
-          && GET_MODE_WIDER_MODE (vec_mode).exists (&wide_mode)
+          && GET_MODE_NEXT_MODE (vec_mode).exists (&wide_mode)
 	  && VECTOR_MODE_P (wide_mode)
 	  && (GET_MODE_UNIT_BITSIZE (vec_mode) * 2
 	      == GET_MODE_UNIT_BITSIZE (wide_mode)))




-- 

[-- Attachment #2: rb16595.patch --]
[-- Type: text/plain, Size: 536 bytes --]

diff --git a/gcc/match.pd b/gcc/match.pd
index 1b0ab7cf60fa4772fbe8304c622b0b8fab1bdefa..28191a992039c6f3a1dab5f7c0e35dd58dc47092 100644
--- a/gcc/match.pd
+++ b/gcc/match.pd
@@ -7997,7 +7997,7 @@ and,
        machine_mode wide_mode;
      }
      (if (sel.series_p (0, 2, 0, 2)
-          && GET_MODE_WIDER_MODE (vec_mode).exists (&wide_mode)
+          && GET_MODE_NEXT_MODE (vec_mode).exists (&wide_mode)
 	  && VECTOR_MODE_P (wide_mode)
 	  && (GET_MODE_UNIT_BITSIZE (vec_mode) * 2
 	      == GET_MODE_UNIT_BITSIZE (wide_mode)))




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-11-16 12:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-15 10:33 [PATCH]middle-end: replace GET_MODE_WIDER_MODE with GET_MODE_NEXT_MODE Tamar Christina
2022-11-15 11:58 ` Richard Sandiford
2022-11-15 13:15   ` Tamar Christina
2022-11-15 14:54     ` Richard Sandiford
2022-11-15 16:23       ` Jeff Law
2022-11-16 12:19       ` Richard Biener

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).