From 7d99191317690e586ffd50207690b6e21ca6b778 Mon Sep 17 00:00:00 2001 From: Denis Drakhnia Date: Tue, 9 Jan 2024 21:05:16 +0200 Subject: [PATCH] asm/aau: skip mova-unaligned at compile time --- tests/asm/aau/mova-unaligned.S | 5 +++++ tests/asm/include/common.S | 4 ++++ tests/asm/include/test_start.S | 6 ------ 3 files changed, 9 insertions(+), 6 deletions(-) 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