This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH, testsuite]: Committed: Skip some more runtime SSE tests for non-sse targets.


Hello!

2008-02-16 Uros Bizjak <ubizjak@gmail.com>

       * gcc.target/i386/fastcall-sseregparm.c: Include sse-check.h.
       (main): Change to void and rename to sse_test.
       * gcc.target/i386/pr24306.c: Ditto.
       * gcc.target/i386/pr32065-2.c: Ditto.
       * gcc.target/i386/20060512-1.c: Include sse2-check.h.
       (main): Change to void and rename to sse2_test.
       * gcc.target/i386/20060512-3.c: Ditto.

Patch was tested on x86_64-pc-linux-gnu {,-m32}, committed to mainline.

Uros.
Index: 20060512-3.c
===================================================================
--- 20060512-3.c	(revision 132364)
+++ 20060512-3.c	(working copy)
@@ -1,7 +1,11 @@
 /* { dg-do run } */
 /* { dg-require-effective-target ilp32 } */
 /* { dg-options "-std=gnu99 -msse2 -mstackrealign" } */
+
+#include "sse2-check.h"
+
 #include <emmintrin.h>
+
 __m128i __attribute__ ((__noinline__))
 vector_using_function ()
 {
@@ -17,8 +21,9 @@ self_aligning_function (int x, int y)
 }
 int g_1 = 20;
 int g_2 = 22;
-int
-main ()
+
+static void
+sse2_test (void)
 {
   int result;
   asm ("pushl %esi");		/* Disalign runtime stack.  */
Index: fastcall-sseregparm.c
===================================================================
--- fastcall-sseregparm.c	(revision 132364)
+++ fastcall-sseregparm.c	(working copy)
@@ -2,6 +2,8 @@
 /* { dg-options "-mpreferred-stack-boundary=4 -msse" } */
 /* { dg-require-effective-target ilp32 } */
 
+#include "sse-check.h"
+
 extern void abort(void);
 
 void __attribute__((fastcall, sseregparm)) foo(int i, int j, float x)
@@ -14,9 +16,9 @@ void __attribute__((fastcall, sseregparm
     abort ();
 }
 
-int main()
+static void
+sse_test (void)
 {
 	foo(0,0,0.0);
 	foo(0,0,0.0);
-	return 0;
 }
Index: pr24306.c
===================================================================
--- pr24306.c	(revision 132364)
+++ pr24306.c	(working copy)
@@ -1,6 +1,8 @@
 /* { dg-do run } */
 /* { dg-options "-msse" } */
 
+#include "sse-check.h"
+
 extern void abort(void);
 typedef int __attribute__ ((vector_size (16))) foo_t;
 
@@ -25,8 +27,8 @@ check (int x, ...)
     abort ();
 }
 
-int main()
+static void
+sse_test (void)
 {
   check (3, s1, 7);
-  return 0;
 }
Index: pr32065-2.c
===================================================================
--- pr32065-2.c	(revision 132364)
+++ pr32065-2.c	(working copy)
@@ -2,13 +2,14 @@
 /* { dg-require-effective-target dfp } */
 /* { dg-options "-Os -msse -std=gnu99" } */
 
+#include "sse-check.h"
+
 extern void abort (void);
 
-int main()
+static void
+sse_test (void)
 {
   if (7.999999999999999999999999999999999E6144dl + 3.0E6144dl
       != __builtin_infd32 ())
     abort ();
-
-  return 0;
 }
Index: 20060512-1.c
===================================================================
--- 20060512-1.c	(revision 132364)
+++ 20060512-1.c	(working copy)
@@ -1,7 +1,11 @@
 /* { dg-do run } */
 /* { dg-require-effective-target ilp32 } */
 /* { dg-options "-std=gnu99 -msse2" } */
+
+#include "sse2-check.h"
+
 #include <emmintrin.h>
+
 __m128i __attribute__ ((__noinline__))
 vector_using_function ()
 {
@@ -17,8 +21,9 @@ self_aligning_function (int x, int y)
 }
 int g_1 = 20;
 int g_2 = 22;
-int
-main ()
+
+static void
+sse2_test (void)
 {
   int result;
   asm ("pushl %esi");		/* Disalign runtime stack.  */

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]