On Mär 30 2017, Peter Bergner <berg...@vnet.ibm.com> wrote: > Index: gcc/testsuite/gcc.target/powerpc/pr80246.c > =================================================================== > --- gcc/testsuite/gcc.target/powerpc/pr80246.c (nonexistent) > +++ gcc/testsuite/gcc.target/powerpc/pr80246.c (working copy) > @@ -0,0 +1,35 @@ > +/* { dg-do compile { target { powerpc*-*-linux* } } } */ > +/* { dg-require-effective-target dfp } */ > +/* { dg-options "-O2" } */ > +/* { dg-final { scan-assembler-times "dxex " 1 } } */ > +/* { dg-final { scan-assembler-times "dxexq " 1 } } */ > +/* { dg-final { scan-assembler-times "diex " 1 } } */ > +/* { dg-final { scan-assembler-times "diexq " 1 } } */ > +/* { dg-final { scan-assembler-not "bl __builtin" } } */ > +/* { dg-final { scan-assembler-not "drintn" } } */ > +/* { dg-final { scan-assembler-not "dctfix" } } */ > +/* { dg-final { scan-assembler-not "dcffix" } } */ > + > +long long > +do_xex (_Decimal64 arg) > +{ > + return __builtin_dxex (arg); > +} > + > +long long > +do_xexq (_Decimal128 arg) > +{ > + return __builtin_dxexq (arg); > +} > + > +_Decimal64 > +do_iex (long long exp, _Decimal64 arg) > +{ > + return __builtin_diex (exp, arg); > +} > + > +_Decimal128 > +do_iexq (long long exp, _Decimal128 arg) > +{ > + return __builtin_diexq (exp, arg); > +}
FAIL: gcc.target/powerpc/pr80246.c (test for excess errors) Excess errors: /daten/gcc/gcc-20170401/gcc/testsuite/gcc.target/powerpc/pr80246.c:18:10: error: Builtin function __builtin_dxex requires the -mhard-dfp option /daten/gcc/gcc-20170401/gcc/testsuite/gcc.target/powerpc/pr80246.c:24:10: error: Builtin function __builtin_dxexq requires the -mhard-dfp option /daten/gcc/gcc-20170401/gcc/testsuite/gcc.target/powerpc/pr80246.c:30:10: error: Builtin function __builtin_diex requires the -mhard-dfp option /daten/gcc/gcc-20170401/gcc/testsuite/gcc.target/powerpc/pr80246.c:36:10: error: Builtin function __builtin_diexq requires the -mhard-dfp option Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."