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.
This commit is contained in:
liuhongt 2022-07-22 09:54:52 +08:00
parent 605b64251c
commit 1cc0e9a46e
1 changed files with 2 additions and 1 deletions

View 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" } } */