diff --git a/tests/asm/aau/mova-unaligned.S b/tests/asm/aau/mova-unaligned.S index e65edfd..8e93d1f 100644 --- a/tests/asm/aau/mova-unaligned.S +++ b/tests/asm/aau/mova-unaligned.S @@ -1,5 +1,7 @@ #include "test_start.S" +#if (defined(MAX_VER) && __iset__ <= MAX_VER) || \ + (defined(MIN_VER) && __iset__ >= MIN_VER) { setwd wsz=4, nfx=1 addd,0 0, arr, %r0 @@ -11,6 +13,9 @@ nop 7 OP,0 area=0, ind=0, am=1, be=0, %r0 addd,0 %r0, 0, %r0 +#else + skip_test +#endif #include "test_end.S" diff --git a/tests/asm/include/common.S b/tests/asm/include/common.S index b4a7585..9e027a2 100644 --- a/tests/asm/include/common.S +++ b/tests/asm/include/common.S @@ -1,6 +1,10 @@ #ifndef SRC_BASE_COMMON_H #define SRC_BASE_COMMON_H +#if !defined(__iset__) +# define __iset__ 1 +#endif + #define NR_exit 1 #define NR_write 4 #define NR_mmap 90 diff --git a/tests/asm/include/test_start.S b/tests/asm/include/test_start.S index c5dd334..00f85da 100644 --- a/tests/asm/include/test_start.S +++ b/tests/asm/include/test_start.S @@ -8,11 +8,5 @@ .type _start, #function .balign 8 _start: -#ifdef MAX_VER - max_version MAX_VER -#endif -#ifdef MIN_VER - min_version MIN_VER -#endif #endif // SRC_BASE_TEST_START_H