blob: 7e9ebdf0e032361ad037aaee6cec7865c7528633 [file] [log] [blame]
#include <stdlib.h>
#include "m128-check.h"
#define DEBUG 1
#define TEST sse_test
static void sse_test (void);
static void
__attribute__ ((noinline))
do_test (void)
{
sse_test ();
}
int
main ()
{
#ifdef __BUILTIN_CPU_SUPPORTS__
/* Most SSE intrinsic operations can be implemented via VMX
instructions, but some operations may be faster / simpler
using the POWER8 VSX instructions. This is especially true
when we are transferring / converting to / from __m64 types.
The direct register transfer instructions from POWER8 are
especially important. So we test for arch_2_07. */
if ( __builtin_cpu_supports ("arch_2_07") )
{
do_test ();
#ifdef DEBUG
printf ("PASSED\n");
#endif
}
#ifdef DEBUG
else
printf ("SKIPPED\n");
#endif
#endif /* __BUILTIN_CPU_SUPPORTS__ */
return 0;
}