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

Since the combining of sin/cos into cexpi is depedent
on the target, this adds another testcase which had failed (earlier in
evpr rather than vrp2) that will fail on all targets rather than
ones which have sincos or C99 math functions.

Committed as obvious after a quick test.

gcc/testsuite/ChangeLog:

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

diff --git a/gcc/testsuite/gcc.c-torture/compile/pr110266.c b/gcc/testsuite/gcc.c-torture/compile/pr110266.c
new file mode 100644
index 00000000000..92af0c51efc
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/compile/pr110266.c
@@ -0,0 +1,9 @@
+double PsyBufferUpdate(int n)
+{
+  if (n == 4)
+    {
+      _Complex double t = __builtin_cexpi(n);
+      return __real t * __imag t;
+    }
+  return 0;
+}
-- 
2.31.1


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

only message in thread, other threads:[~2023-06-15 17:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-15 17:56 [PATCH] Add another testcase for PR 110266 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).