From: Uros Bizjak Date: Tue, 14 Jun 2016 14:00:45 +0000 (+0200) Subject: float128-3.c: New test. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4d568ab255e88918debfd75f010dfefa8f8d8738;p=gcc.git float128-3.c: New test. * gcc.target/i386/float128-3.c: New test. * gcc.target/i386/quad-sse4.c: Ditto. * gcc.target/i386/quad-sse.c: Use -msse instead of -msse2. Update scan strings. From-SVN: r237443 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 30e53be7470..d2bad9859c4 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2016-06-14 Uros Bizjak + + * gcc.target/i386/float128-3.c: New test. + * gcc.target/i386/quad-sse4.c: Ditto. + * gcc.target/i386/quad-sse.c: Use -msse instead of -msse2. + Update scan strings. + 2016-06-14 Richard Biener PR middle-end/71526 diff --git a/gcc/testsuite/gcc.target/i386/float128-3.c b/gcc/testsuite/gcc.target/i386/float128-3.c new file mode 100644 index 00000000000..93af2fc315a --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/float128-3.c @@ -0,0 +1,23 @@ +/* { dg-do run } */ +/* { dg-options "-O2 -msse4.1" } */ +/* { dg-require-effective-target sse4 } */ + +#include "sse4_1-check.h" + +int signbit (__float128); + +extern void abort (void); + +static void +sse4_1_test (void) +{ + static volatile __float128 a; + + a = -1.2q; + if (!signbit (a)) + abort (); + + a = 1.2q; + if (signbit (a)) + abort (); +} diff --git a/gcc/testsuite/gcc.target/i386/quad-sse4.c b/gcc/testsuite/gcc.target/i386/quad-sse4.c new file mode 100644 index 00000000000..030ae09a641 --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/quad-sse4.c @@ -0,0 +1,13 @@ +/* { dg-do compile } */ +/* { dg-options "-O2 -msse4.1" } */ + +int signbit (__float128); + +__float128 x; + +int __test_1(void) +{ + return signbit (x); +} + +/* { dg-final { scan-assembler-not "signbit" } } */