|
From: <sv...@va...> - 2008-05-15 05:44:42
|
Author: bart
Date: 2008-05-15 06:44:42 +0100 (Thu, 15 May 2008)
New Revision: 8091
Log:
Get the HAS_ALTIVEC macro from config.h instead of requiring it to be defined explicitly.
Modified:
branches/CROSS_COMPILATION/none/tests/ppc32/Makefile.am
branches/CROSS_COMPILATION/none/tests/ppc32/jm-insns.c
branches/CROSS_COMPILATION/none/tests/ppc64/Makefile.am
Modified: branches/CROSS_COMPILATION/none/tests/ppc32/Makefile.am
===================================================================
--- branches/CROSS_COMPILATION/none/tests/ppc32/Makefile.am 2008-05-15 05:37:37 UTC (rev 8090)
+++ branches/CROSS_COMPILATION/none/tests/ppc32/Makefile.am 2008-05-15 05:44:42 UTC (rev 8091)
@@ -31,7 +31,6 @@
@FLAG_M32@
AM_CXXFLAGS = $(AM_CFLAGS) @FLAG_M32@
-jm_insns_CFLAGS = -Winline -Wall -O -mregnames \
- -DHAS_ALTIVEC -maltivec @FLAG_M32@
+jm_insns_CFLAGS = -Winline -Wall -O -mregnames -maltivec @FLAG_M32@
testVMX_CFLAGS = -O -g -Wall -maltivec -mabi=altivec -DALTIVEC \
-DGCC_COMPILER @FLAG_M32@
Modified: branches/CROSS_COMPILATION/none/tests/ppc32/jm-insns.c
===================================================================
--- branches/CROSS_COMPILATION/none/tests/ppc32/jm-insns.c 2008-05-15 05:37:37 UTC (rev 8090)
+++ branches/CROSS_COMPILATION/none/tests/ppc32/jm-insns.c 2008-05-15 05:44:42 UTC (rev 8091)
@@ -2,9 +2,9 @@
/* HOW TO COMPILE:
* 32bit build:
- gcc -Winline -Wall -g -O -mregnames -DHAS_ALTIVEC -maltivec
+ gcc -Winline -Wall -g -O -mregnames -maltivec
* 64bit build:
- gcc -Winline -Wall -g -O -mregnames -DHAS_ALTIVEC -maltivec -m64
+ gcc -Winline -Wall -g -O -mregnames -maltivec -m64
This program is useful, but the register usage conventions in
it are a complete dog. In particular, _patch_op_imm has to
@@ -219,7 +219,8 @@
register HWord_t r16 __asm__ ("r16");
register HWord_t r17 __asm__ ("r17");
-#if defined (HAS_ALTIVEC)
+#include "config.h"
+#if defined (HAVE_ALTIVEC_H)
# include <altivec.h>
#endif
#include <assert.h>
Modified: branches/CROSS_COMPILATION/none/tests/ppc64/Makefile.am
===================================================================
--- branches/CROSS_COMPILATION/none/tests/ppc64/Makefile.am 2008-05-15 05:37:37 UTC (rev 8090)
+++ branches/CROSS_COMPILATION/none/tests/ppc64/Makefile.am 2008-05-15 05:44:42 UTC (rev 8091)
@@ -18,5 +18,4 @@
@FLAG_M64@
AM_CXXFLAGS = $(AM_CFLAGS) @FLAG_M64@
-jm_insns_CFLAGS = -Winline -Wall -O -mregnames -DHAS_ALTIVEC -maltivec \
- @FLAG_M64@
+jm_insns_CFLAGS = -Winline -Wall -O -mregnames -maltivec @FLAG_M64@
|