float128-3.c: New test.
authorUros Bizjak <ubizjak@gmail.com>
Tue, 14 Jun 2016 14:00:45 +0000 (16:00 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Tue, 14 Jun 2016 14:00:45 +0000 (16:00 +0200)
        * 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

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/float128-3.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/quad-sse4.c [new file with mode: 0644]

index 30e53be74703a82c4588abe2bbd398f8171f9f95..d2bad9859c42562d1c66ed350df4ea7a4445f600 100644 (file)
@@ -1,3 +1,10 @@
+2016-06-14  Uros Bizjak  <ubizjak@gmail.com>
+
+        * 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  <rguenther@suse.de>
 
        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 (file)
index 0000000..93af2fc
--- /dev/null
@@ -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 (file)
index 0000000..030ae09
--- /dev/null
@@ -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" } } */