|
From: <sv...@va...> - 2006-01-24 18:50:53
|
Author: sewardj
Date: 2006-01-24 18:50:38 +0000 (Tue, 24 Jan 2006)
New Revision: 5592
Log:
Don't build the Altivec constant tables unless Altivec instruction
tests have been requested.
Modified:
trunk/none/tests/ppc32/jm-insns.c
Modified: trunk/none/tests/ppc32/jm-insns.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/none/tests/ppc32/jm-insns.c 2006-01-24 01:01:17 UTC (rev 5591)
+++ trunk/none/tests/ppc32/jm-insns.c 2006-01-24 18:50:38 UTC (rev 5592)
@@ -4107,18 +4107,19 @@
static int verbose =3D 0;
static int arg_list_size =3D 0;
=20
-static double *fargs;
-static int nb_fargs;
-static int nb_normal_fargs;
-static HWord_t *iargs;
-static int nb_iargs;
-static uint16_t *ii16;
-static int nb_ii16;
+static double *fargs =3D NULL;
+static int nb_fargs =3D 0;
+static int nb_normal_fargs =3D 0;
+static HWord_t *iargs =3D NULL;
+static int nb_iargs =3D 0;
+static uint16_t *ii16 =3D NULL;
+static int nb_ii16 =3D 0;
+
#if defined (HAS_ALTIVEC)
-static vector unsigned int* viargs;
-static int nb_viargs;
-static vector float* vfargs;
-static int nb_vfargs;
+static vector unsigned int* viargs =3D NULL;
+static int nb_viargs =3D 0;
+static vector float* vfargs =3D NULL;
+static int nb_vfargs =3D 0;
=20
//#define TEST_VSCR_SAT
#endif
@@ -8399,8 +8400,10 @@
build_fargs_table();
build_ii16_table();
#if defined (HAS_ALTIVEC)
- build_viargs_table();
- build_vfargs_table();
+ if (flags.altivec || flags.faltivec) {
+ build_viargs_table();
+ build_vfargs_table();
+ }
#endif
// dump_iargs();
// dump_iargs16();
|