diff --git a/tests/asm/base/excp-3.S b/tests/asm/base/excp-3.S index 6e567c6..2c34ca6 100644 --- a/tests/asm/base/excp-3.S +++ b/tests/asm/base/excp-3.S @@ -29,8 +29,7 @@ #include "test_end.S" sig_handler: - isa_version %g16 - cmpbdb,0 %g16, 5, %pred0 + cmpbdb,0 __iset__, 5, %pred0 ldd,0 8, psp, %g16 andd,0 %g16, (1ULL << 32) - 1, %g16 diff --git a/tests/asm/base/excp-4.S b/tests/asm/base/excp-4.S index b95b982..e26b52c 100644 --- a/tests/asm/base/excp-4.S +++ b/tests/asm/base/excp-4.S @@ -29,8 +29,7 @@ #include "test_end.S" sig_handler: - isa_version %g16 - cmpbdb,0 %g16, 5, %pred0 + cmpbdb,0 __iset__, 5, %pred0 ldd,0 8, psp, %g16 andd,0 %g16, (1ULL << 32) - 1, %g16 diff --git a/tests/asm/base/excp-5.S b/tests/asm/base/excp-5.S index a27525e..d8f9c38 100644 --- a/tests/asm/base/excp-5.S +++ b/tests/asm/base/excp-5.S @@ -27,8 +27,7 @@ #include "test_end.S" sig_handler: - isa_version %g16 - cmpbdb,0 %g16, 5, %pred0 + cmpbdb,0 __iset__, 5, %pred0 ldd,0 8, psp, %g16 andd,0 %g16, (1ULL << 32) - 1, %g16 diff --git a/tests/asm/base/excp-6.S b/tests/asm/base/excp-6.S index 8d5446f..4cf431f 100644 --- a/tests/asm/base/excp-6.S +++ b/tests/asm/base/excp-6.S @@ -28,8 +28,7 @@ #include "test_end.S" sig_handler: - isa_version %g16 - cmpbdb,0 %g16, 5, %pred0 + cmpbdb,0 __iset__, 5, %pred0 ldd,0 8, psp, %g16 andd,0 %g16, (1ULL << 32) - 1, %g16 diff --git a/tests/asm/include/common.S b/tests/asm/include/common.S index 9e027a2..220d056 100644 --- a/tests/asm/include/common.S +++ b/tests/asm/include/common.S @@ -350,60 +350,6 @@ #define MDL_E16S 11 /* Elbrus-16S */ #define MDL_E2S3 12 /* Elbrus-2S3 */ - .macro isa_version dst - { - rrd,0 %idr, SCRATCH_REG0 - addd,1 0, 0xff, \dst - } - { - andd,0 SCRATCH_REG0, 0xff, SCRATCH_REG0 - } - { - cmpedb,0 SCRATCH_REG0, MDL_E2S, SCRATCH_PREG0 - cmpedb,1 SCRATCH_REG0, MDL_E2SM, SCRATCH_PREG1 - cmpedb,3 SCRATCH_REG0, MDL_E4S, SCRATCH_PREG2 - cmpedb,4 SCRATCH_REG0, MDL_E8S, SCRATCH_PREG3 - } - { - cmpedb,0 SCRATCH_REG0, MDL_E1SP, SCRATCH_PREG4 - cmpedb,1 SCRATCH_REG0, MDL_E8S2, SCRATCH_PREG5 - cmpedb,3 SCRATCH_REG0, MDL_E12S, SCRATCH_PREG6 - cmpedb,4 SCRATCH_REG0, MDL_E16S, SCRATCH_PREG7 - } - { - cmpedb,0 SCRATCH_REG0, MDL_E2S3, SCRATCH_PREG8 - } - { - addd,0 0, 2, \dst ? SCRATCH_PREG0 - addd,1 0, 2, \dst ? SCRATCH_PREG1 - addd,2 0, 3, \dst ? SCRATCH_PREG2 - addd,3 0, 4, \dst ? SCRATCH_PREG3 - addd,4 0, 4, \dst ? SCRATCH_PREG4 - addd,5 0, 5, \dst ? SCRATCH_PREG5 - } - { - addd,0 0, 6, \dst ? SCRATCH_PREG6 - addd,1 0, 6, \dst ? SCRATCH_PREG7 - addd,2 0, 6, \dst ? SCRATCH_PREG8 - } - .endm - - .macro min_version ver - isa_version SCRATCH_REG1 - cmplsb,0 SCRATCH_REG1, \ver, SCRATCH_PREG0 - ibranch 0f ? ~SCRATCH_PREG0 - skip_test -0: - .endm - - .macro max_version ver - isa_version SCRATCH_REG1 - cmplesb,0 SCRATCH_REG1, \ver, SCRATCH_PREG0 - ibranch 0f ? SCRATCH_PREG0 - skip_test -0: - .endm - #define LSR_LCNT(X) ((X) & 0xffffffff) #define LSR_ECNT(X) (((X) & 0x1f) << 32) #define LSR_VLC (1 << 37)