testsuite: i386: Require dfp in gcc.target/i386/pr101346.c

Message ID yddh7d52pii.fsf@CeBiTec.Uni-Bielefeld.DE
State Committed
Commit a68933da01440d83d08f9dedd335589f7b19002d
Headers
Series testsuite: i386: Require dfp in gcc.target/i386/pr101346.c |

Commit Message

Rainer Orth Oct. 25, 2021, 1:38 p.m. UTC
  gcc.target/i386/pr101346.c currently FAILs on Solaris/x86:

FAIL: gcc.target/i386/pr101346.c (test for excess errors)

Excess errors:
/vol/gcc/src/hg/master/local/gcc/testsuite/gcc.target/i386/pr101346.c:6:1: error: decimal floating-point not supported for this target
/vol/gcc/src/hg/master/local/gcc/testsuite/gcc.target/i386/pr101346.c:7:6: error: decimal floating-point not supported for this target
/vol/gcc/src/hg/master/local/gcc/testsuite/gcc.target/i386/pr101346.c:9:12: warning: implicit declaration of function '__builtin_fabsd128'; did you mean '__builtin_fabsf128'? [-Wimplicit-function-declaration]

Fixed by requiring dfp support.  Tested on i386-pc-solaris2.11 and
x86_64-pc-linux-gnu.

Ok for master?

	Rainer
  

Comments

Rainer Orth Nov. 15, 2021, 9:08 a.m. UTC | #1
Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> writes:

> gcc.target/i386/pr101346.c currently FAILs on Solaris/x86:
>
> FAIL: gcc.target/i386/pr101346.c (test for excess errors)
>
> Excess errors:
> /vol/gcc/src/hg/master/local/gcc/testsuite/gcc.target/i386/pr101346.c:6:1:
> error: decimal floating-point not supported for this target
> /vol/gcc/src/hg/master/local/gcc/testsuite/gcc.target/i386/pr101346.c:7:6:
> error: decimal floating-point not supported for this target
> /vol/gcc/src/hg/master/local/gcc/testsuite/gcc.target/i386/pr101346.c:9:12:
> warning: implicit declaration of function '__builtin_fabsd128'; did you
> mean '__builtin_fabsf128'? [-Wimplicit-function-declaration]
>
> Fixed by requiring dfp support.  Tested on i386-pc-solaris2.11 and
> x86_64-pc-linux-gnu.
>
> Ok for master?

> 2021-10-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
> 
> 	gcc/testsuite:
> 	* gcc.target/i386/pr101346.c: Require dfp support.

Now installed as obvious.

	Rainer
  

Patch

# HG changeset patch
# Parent  68af767588b52fb610717b4dbbc97b030192ae48
testsuite: i386: Require dfp in gcc.target/i386/pr101346.c

diff --git a/gcc/testsuite/gcc.target/i386/pr101346.c b/gcc/testsuite/gcc.target/i386/pr101346.c
--- a/gcc/testsuite/gcc.target/i386/pr101346.c
+++ b/gcc/testsuite/gcc.target/i386/pr101346.c
@@ -2,6 +2,7 @@ 
 /* { dg-do compile } */
 /* { dg-options "-O0 -fprofile-generate -msse" } */
 /* { dg-require-profiling "-fprofile-generate" } */
+/* { dg-require-effective-target dfp } */
 
 _Decimal128
 foo (_Decimal128 x)