| 1 |
#include <stdlib.h> |
| 2 |
|
| 3 |
/* Define this to enable the combination of VSX vector double and |
| 4 |
SSE2 data types. */ |
| 5 |
#define __VSX_SSE2__ 1 |
| 6 |
|
| 7 |
#include "m128-check.h" |
| 8 |
|
| 9 |
/* define DEBUG replace abort with printf on error. */ |
| 10 |
//#define DEBUG 1 |
| 11 |
|
| 12 |
#define TEST sse2_test |
| 13 |
|
| 14 |
static void sse2_test (void); |
| 15 |
|
| 16 |
static void |
| 17 |
__attribute__ ((noinline)) |
| 18 |
do_test (void) |
| 19 |
{ |
| 20 |
sse2_test (); |
| 21 |
} |
| 22 |
|
| 23 |
int |
| 24 |
main () |
| 25 |
{ |
| 26 |
do_test (); |
| 27 |
#ifdef DEBUG |
| 28 |
printf ("PASSED\n"); |
| 29 |
#endif |
| 30 |
return 0; |
| 31 |
} |