On ppc64 [old big endian] altivec.h can not be included directly.
Move the HAS_ISA_3_1 guard around so the include is only done when
the full test (and test_list_t) are build.
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
-#include <altivec.h>
#include <malloc.h>
#include <string.h>
unsigned long current_cr;
unsigned long current_fpscr;
+#ifdef HAS_ISA_3_1
-struct test_list_t current_test;
-
+#include <altivec.h>
#include "isa_3_1_helpers.h"
-#ifdef HAS_ISA_3_1
+struct test_list_t current_test;
static void test_plbz_off0 (void) {
__asm__ __volatile__ ("plbz %0, 0(%1), 0" : "=r" (rt) : "r" (ra) );
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
-#include <altivec.h>
#include <malloc.h>
#include <string.h>
unsigned long current_cr;
unsigned long current_fpscr;
+#ifdef HAS_ISA_3_1
-struct test_list_t current_test;
-
+#include <altivec.h>
#include "isa_3_1_helpers.h"
-#ifdef HAS_ISA_3_1
+struct test_list_t current_test;
static void test_plfd_64 (void) {
__asm__ __volatile__ ("plfd 28, 64(%0), 0" :: "r" (ra) );