Add another testcase for PR 110266

Message ID 20230615175625.3544115-1-apinski@marvell.com
State Committed
Commit 91fb8bdb3944b78bca4f739583ff490c83a92fe7
Headers
Series Add another testcase for PR 110266 |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gcc_build--master-aarch64 fail Patch failed to apply
linaro-tcwg-bot/tcwg_gcc_check--master-aarch64 fail Testing failed
linaro-tcwg-bot/tcwg_gcc_build--master-arm fail Patch failed to apply
linaro-tcwg-bot/tcwg_gcc_check--master-arm fail Testing failed

Commit Message

Andrew Pinski June 15, 2023, 5:56 p.m. UTC
  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
  

Patch

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;
+}