public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [COMMITTED] Add testcase for PR 110444
@ 2023-06-28  7:22 Andrew Pinski
  0 siblings, 0 replies; only message in thread
From: Andrew Pinski @ 2023-06-28  7:22 UTC (permalink / raw)
  To: gcc-patches; +Cc: Andrew Pinski

This testcase was fixed after r14-2135-gd915762ea9043da85 and
there was no testcase for it before so adding one is a good thing.

Committed as obvious after testing the testcase to make sure it works.

gcc/testsuite/ChangeLog:

	PR tree-optimization/110444
	* gcc.c-torture/compile/pr110444-1.c: New test.
---
 gcc/testsuite/gcc.c-torture/compile/pr110444-1.c | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 gcc/testsuite/gcc.c-torture/compile/pr110444-1.c

diff --git a/gcc/testsuite/gcc.c-torture/compile/pr110444-1.c b/gcc/testsuite/gcc.c-torture/compile/pr110444-1.c
new file mode 100644
index 00000000000..1cdb400f76f
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/compile/pr110444-1.c
@@ -0,0 +1,11 @@
+/* This used to ICE after SLP during match-and-simplify
+   as real_can_shorten_arithmetic was called with the vector
+   mode.  */
+void f(float *a, float *b, float *c, int size)
+{
+  float t[2];
+  t[0] = b[0] - (float)__builtin_pow(c[0], 2);
+  t[1] = b[1] - (float)__builtin_pow(c[1], 2);
+  a[0] = t[0];
+  a[1] = t[1];
+}
-- 
2.31.1


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

only message in thread, other threads:[~2023-06-28  7:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-28  7:22 [COMMITTED] Add testcase for PR 110444 Andrew Pinski

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