diff options
author | Jeff Law <jlaw@ventanamicro.com> | 2024-12-30 16:14:29 -0700 |
---|---|---|
committer | Jeff Law <jlaw@ventanamicro.com> | 2024-12-30 16:17:04 -0700 |
commit | b739efa05d96edbc1468043a630bf29d38a0c30b (patch) | |
tree | 799e33c706293f66de9d19fc8295f6584c926e3a | |
parent | 07e532a0608640b9e57ae6fc3a0ca83c9afc75a1 (diff) | |
download | gcc-b739efa05d96edbc1468043a630bf29d38a0c30b.zip gcc-b739efa05d96edbc1468043a630bf29d38a0c30b.tar.gz gcc-b739efa05d96edbc1468043a630bf29d38a0c30b.tar.bz2 |
[PR testsuite/114182] Fix minor testsuite issue when double == float
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.
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/attr-complex-method-2.c | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/attr-complex-method.c | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/gcc/testsuite/gcc.c-torture/compile/attr-complex-method-2.c b/gcc/testsuite/gcc.c-torture/compile/attr-complex-method-2.c index dc28e2c..19ec1db 100644 --- a/gcc/testsuite/gcc.c-torture/compile/attr-complex-method-2.c +++ b/gcc/testsuite/gcc.c-torture/compile/attr-complex-method-2.c @@ -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 } } } } } */ diff --git a/gcc/testsuite/gcc.c-torture/compile/attr-complex-method.c b/gcc/testsuite/gcc.c-torture/compile/attr-complex-method.c index 046de7e..239f2f7 100644 --- a/gcc/testsuite/gcc.c-torture/compile/attr-complex-method.c +++ b/gcc/testsuite/gcc.c-torture/compile/attr-complex-method.c @@ -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 } } } } } */ + |