]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix common isa 3.1 test code
authorCarl Love <carll@us.ibm.com>
Tue, 22 Sep 2020 23:57:14 +0000 (18:57 -0500)
committerCarl Love <cel@us.ibm.com>
Wed, 23 Sep 2020 00:17:37 +0000 (19:17 -0500)
The code in test_isa_3_1_common.c should only be included
if ISA 3.1 support exists.

none/tests/ppc64/test_isa_3_1_common.c

index 585fd0c90fd144c19419a5853659aee717e62c8e..58f2bdcde5da8f02ce619bf751e4215129ddd07e 100644 (file)
@@ -18,6 +18,8 @@
  The GNU General Public License is contained in the file COPYING.
  */
 
+#ifdef HAS_ISA_3_1
+
 #include <stdbool.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -2186,3 +2188,4 @@ unsigned long get_vsrhd_vs28 () {
 unsigned long get_vsrhd_vs29 () {
     __asm__ __volatile__ ("mfvsrd %0, 29":"=r" (vsrd)); return vsrd; }
 
+#endif