]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Adjust testcase.
authorliuhongt <hongtao.liu@intel.com>
Fri, 22 Jul 2022 01:54:52 +0000 (09:54 +0800)
committerliuhongt <hongtao.liu@intel.com>
Fri, 22 Jul 2022 02:06:42 +0000 (10:06 +0800)
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.

gcc/testsuite/gcc.dg/pr23911.c

index 3fa041222dec4afcf8f131f2a6d7902304d7285b..691f3507db222e589595457933d6d9a2eef88386 100644 (file)
@@ -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" } } */