From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1314) id 0A2E1385624F; Thu, 15 Jun 2023 17:57:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0A2E1385624F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1686851841; bh=3J4wMiE3U61k5Tx1WRqyHBCWgRSQ+po/o9oRw8DhqIE=; h=From:To:Subject:Date:From; b=OYlgQo/O3eAqihnTNONiDrzgnac37rGfB+TvRKwbIhrh6UkHTYnJqqHMp3hw3RH8C WPE/2sOcvF/+CSqu3zZW2HLVba4XlDCKyIFY5OP9HPF+MLvZ8BePupKkVbEq3AT/Mg dw0+yS5urUIOulKx94dY5cKzB153HVgm2tMpLeSM= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Andrew Pinski To: gcc-cvs@gcc.gnu.org Subject: [gcc r14-1872] Add another testcase for PR 110266 X-Act-Checkin: gcc X-Git-Author: Andrew Pinski X-Git-Refname: refs/heads/trunk X-Git-Oldrev: 6c121a2c687c56b09ecc11ef6ae1893ec5006325 X-Git-Newrev: 91fb8bdb3944b78bca4f739583ff490c83a92fe7 Message-Id: <20230615175721.0A2E1385624F@sourceware.org> Date: Thu, 15 Jun 2023 17:57:21 +0000 (GMT) List-Id: https://gcc.gnu.org/g:91fb8bdb3944b78bca4f739583ff490c83a92fe7 commit r14-1872-g91fb8bdb3944b78bca4f739583ff490c83a92fe7 Author: Andrew Pinski Date: Thu Jun 15 17:49:40 2023 +0000 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. Diff: --- gcc/testsuite/gcc.c-torture/compile/pr110266.c | 9 +++++++++ 1 file changed, 9 insertions(+) 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; +}