]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[PR testsuite/114182] Fix minor testsuite issue when double == float
authorJeff Law <jlaw@ventanamicro.com>
Mon, 30 Dec 2024 23:14:29 +0000 (16:14 -0700)
committerJeff Law <jlaw@ventanamicro.com>
Mon, 30 Dec 2024 23:17:04 +0000 (16:17 -0700)
This is a minor testsuite adjustment

attr-complex-method-2.c selects between two scan-tree-dump clauses based on
avr, !avr.  But what they really should be checking is "large_double" that way
it works for avr, h8, rl78 and any other target which makes doubles the same
size as floats.

attr-complex-method.c should be doing the same thing.

After this change avr passes attr-complex-method.c and the rl78 and h8 ports
will pass both tests.  Other targets in my tester are unaffected.

PR testsuite/114182

gcc/testsuite/

* gcc.c-torture/compile/attr-complex-method.c: Use
"large_double" to select between scan outputs.
* gcc.c-torture/compile/attr-complex-method-2.c: Similarly.

gcc/testsuite/gcc.c-torture/compile/attr-complex-method-2.c
gcc/testsuite/gcc.c-torture/compile/attr-complex-method.c

index dc28e2c99c615af626a3ee75cfcb9d538160ec60..19ec1dbdf0c822231508934cfd9ae8571aa242a9 100644 (file)
@@ -8,5 +8,5 @@ void do_div (_Complex double *a, _Complex double *b)
   *a = *b / (4.0 - 5.0fi);
 }
 
-/* { dg-final { scan-tree-dump "__(?:gnu_)?divdc3" "optimized" { target { ! { avr-*-* } } } } } */
-/* { dg-final { scan-tree-dump "__(?:gnu_)?divsc3" "optimized" { target { avr-*-* } } } } */
+/* { dg-final { scan-tree-dump "__(?:gnu_)?divdc3" "optimized" { target { large_double } } } } */
+/* { dg-final { scan-tree-dump "__(?:gnu_)?divsc3" "optimized" { target { ! { large_double } } } } } */
index 046de7efeb96f161f292aaa016bd61df99b78c59..239f2f7d36fd5b97a40014084800266cfdcd032f 100644 (file)
@@ -8,4 +8,6 @@ void do_div (_Complex double *a, _Complex double *b)
   *a = *b / (4.0 - 5.0fi);
 }
 
-/* { dg-final { scan-tree-dump-not "__divdc3" "optimized" } } */
+/* { dg-final { scan-tree-dump-not "__divdc3" "optimized" { target { large_double } } } } */
+/* { dg-final { scan-tree-dump-not "__divsc3" "optimized" { target { ! { large_double } } } } } */
+