From 173f8a2b35b0794f596b6aa8ba8b2b53c9cbe186 Mon Sep 17 00:00:00 2001 From: Julian Seward Date: Tue, 24 Jan 2006 18:50:38 +0000 Subject: [PATCH] Don't build the Altivec constant tables unless Altivec instruction tests have been requested. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5592 --- none/tests/ppc32/jm-insns.c | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/none/tests/ppc32/jm-insns.c b/none/tests/ppc32/jm-insns.c index d8f853836e..485037d54e 100644 --- a/none/tests/ppc32/jm-insns.c +++ b/none/tests/ppc32/jm-insns.c @@ -4107,18 +4107,19 @@ static test_table_t all_tests[] = { static int verbose = 0; static int arg_list_size = 0; -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 = NULL; +static int nb_fargs = 0; +static int nb_normal_fargs = 0; +static HWord_t *iargs = NULL; +static int nb_iargs = 0; +static uint16_t *ii16 = NULL; +static int nb_ii16 = 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 = NULL; +static int nb_viargs = 0; +static vector float* vfargs = NULL; +static int nb_vfargs = 0; //#define TEST_VSCR_SAT #endif @@ -8399,8 +8400,10 @@ int main (int argc, char **argv) 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(); -- 2.47.2