asm: use __iset__ to skip tests

This commit is contained in:
Denis Drakhnia 2024-01-02 07:46:31 +02:00
parent d485af85f2
commit e9a664731a
4 changed files with 15 additions and 9 deletions

View File

@ -1,7 +1,6 @@
#include "test_start.S"
min_version 4
#if __iset__ >= 4
{
setwd wsz=8, nfx=1
adds,0 0, 0x40000000, %r0 // 2.0f
@ -29,5 +28,8 @@
assert_eq_i32(%r7, 0x3FC00000)
assert_eq_i32(%r8, 0x40000000)
assert_eq_i32(%r9, 0x40A00000)
#else
skip_test
#endif
#include "test_end.S"

View File

@ -65,7 +65,7 @@ asm_tests = {
'setbn-invalidate-regs-2': { 'should_fail': true },
'setbp-invalidate-regs-1': {},
'setbp-invalidate-regs-2': { 'should_fail': true },
'dbl-1': { 'c_args': ['-march=elbrus-v3'] },
'dbl-1': {},
'out-of-bounds-1': { 'should_fail': true },
'out-of-bounds-2': { 'should_fail': true },
'out-of-bounds-3': { 'should_fail': true },
@ -86,7 +86,7 @@ asm_tests = {
'ret-reset-ctpr-3': { 'should_fail': true },
},
'decode': {
'ales25-1': { 'c_args': ['-march=elbrus-v4'] },
'ales25-1': {},
'lit-1': {},
'store-load-group-1': {},
'store-load-group-2': { 'should_fail': true },
@ -133,7 +133,7 @@ asm_tests = {
'rwd-alc-rrd-1': {},
},
'sm': {
'dbl-1': { 'c_args': ['-march=elbrus-v3' ]},
'dbl-1': {},
'gettagd-1': {},
'gettagd-2': { 'should_fail': true },
'insfd-1': {},

View File

@ -1,10 +1,12 @@
#include "test_start.S"
min_version 3
#if __iset__ >= 3
setwd wsz=4, nfx=1, dbl=1
invalid64 %r0
adds,0 0, 0, %r0
addd,0 %r0, 0, %r0
#else
skip_test
#endif
#include "test_end.S"

View File

@ -1,7 +1,6 @@
#include "test_start.S"
min_version 3
#if __iset__ >= 3
{
setwd wsz=4, nfx=1
subd,0 0, 1, %r0
@ -37,5 +36,8 @@
assert_eq_i64(%r0, 0)
assert_eq_i64(%r1, 0)
assert_eq_i64(%g16, 0)
#else
skip_test
#endif
#include "test_end.S"