aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Pinski <apinski@marvell.com>2023-06-15 17:49:40 +0000
committerAndrew Pinski <apinski@marvell.com>2023-06-15 17:56:50 +0000
commit91fb8bdb3944b78bca4f739583ff490c83a92fe7 (patch)
treecbb863984e0b6e91bd9b9877db052d47c803f0a8
parent6c121a2c687c56b09ecc11ef6ae1893ec5006325 (diff)
downloadgcc-91fb8bdb3944b78bca4f739583ff490c83a92fe7.zip
gcc-91fb8bdb3944b78bca4f739583ff490c83a92fe7.tar.gz
gcc-91fb8bdb3944b78bca4f739583ff490c83a92fe7.tar.bz2
Add another testcase for PR 110266
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.
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/pr110266.c9
1 files changed, 9 insertions, 0 deletions
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 0000000..92af0c5
--- /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;
+}