From: Carl Love Date: Tue, 22 Sep 2020 23:57:14 +0000 (-0500) Subject: Fix common isa 3.1 test code X-Git-Tag: VALGRIND_3_17_0~153 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=baf60c0f06261a03350fde40350560bc21681687;p=thirdparty%2Fvalgrind.git Fix common isa 3.1 test code The code in test_isa_3_1_common.c should only be included if ISA 3.1 support exists. --- diff --git a/none/tests/ppc64/test_isa_3_1_common.c b/none/tests/ppc64/test_isa_3_1_common.c index 585fd0c90f..58f2bdcde5 100644 --- a/none/tests/ppc64/test_isa_3_1_common.c +++ b/none/tests/ppc64/test_isa_3_1_common.c @@ -18,6 +18,8 @@ The GNU General Public License is contained in the file COPYING. */ +#ifdef HAS_ISA_3_1 + #include #include #include @@ -2186,3 +2188,4 @@ unsigned long get_vsrhd_vs28 () { unsigned long get_vsrhd_vs29 () { __asm__ __volatile__ ("mfvsrd %0, 29":"=r" (vsrd)); return vsrd; } +#endif