public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-1791] Adjust testcase.
@ 2022-07-22  2:08 hongtao Liu
  0 siblings, 0 replies; only message in thread
From: hongtao Liu @ 2022-07-22  2:08 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:1cc0e9a46e79e7ccc7f904b951e369b2b2647567

commit r13-1791-g1cc0e9a46e79e7ccc7f904b951e369b2b2647567
Author: liuhongt <hongtao.liu@intel.com>
Date:   Fri Jul 22 09:54:52 2022 +0800

    Adjust testcase.
    
    r13-1762-gf9d4c3b45c5ed5f45c8089c990dbd4e181929c3d lower complex type
    move to scalars, but testcase pr23911 is supposed to scan __complex__
    constant which is never available, so adjust testcase to scan
    IMAGPART/REALPART_EXPR constants separately.
    
    gcc/testsuite/ChangeLog
    
            PR tree-optimization/106010
            * gcc.dg/pr23911.c: Scan IMAGPART/REALPART_EXPR = ** instead
            of __complex__ since COMPLEX_CST is lower to scalars.

Diff:
---
 gcc/testsuite/gcc.dg/pr23911.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.dg/pr23911.c b/gcc/testsuite/gcc.dg/pr23911.c
index 3fa041222de..691f3507db2 100644
--- a/gcc/testsuite/gcc.dg/pr23911.c
+++ b/gcc/testsuite/gcc.dg/pr23911.c
@@ -16,5 +16,6 @@ test (void)
 
 /* After DCE2 which runs after FRE, the expressions should be fully
    constant folded.  There should be no loads from b left.  */
-/* { dg-final { scan-tree-dump-times "__complex__ \\\(1.0e\\\+0, 0.0\\\)" 2 "dce3" } } */
+/* { dg-final { scan-tree-dump-times {(?n)REALPART_EXPR.*= 1\.0e\+0} 2 "dce3" } } */
+/* { dg-final { scan-tree-dump-times {(?n)IMAGPART_EXPR.*= 0\.0} 2 "dce3" } } */
 /* { dg-final { scan-tree-dump-times "= b" 0 "dce3" } } */


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

only message in thread, other threads:[~2022-07-22  2:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-22  2:08 [gcc r13-1791] Adjust testcase hongtao Liu

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