* [PATCH, testsuite]: Committed: Skip some more runtime SSE tests for non-sse targets.
@ 2008-02-16 12:29 Uros Bizjak
0 siblings, 0 replies; only message in thread
From: Uros Bizjak @ 2008-02-16 12:29 UTC (permalink / raw)
To: GCC Patches
[-- Attachment #1: Type: text/plain, Size: 514 bytes --]
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.
[-- Attachment #2: p.diff.txt --]
[-- Type: text/plain, Size: 2791 bytes --]
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. */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-02-16 11:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-16 12:29 [PATCH, testsuite]: Committed: Skip some more runtime SSE tests for non-sse targets Uros Bizjak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).