asm/plu: add movep tests

This commit is contained in:
Denis Drakhnia 2024-01-05 12:52:34 +02:00
parent 30aaf08b89
commit b556e0086a
5 changed files with 72 additions and 0 deletions

View File

@ -116,6 +116,10 @@ asm_tests = {
'landp-9': { 'src': 'andp-9', 'c_args': ['-DOP=landp'] }, 'landp-9': { 'src': 'andp-9', 'c_args': ['-DOP=landp'] },
'landp-10': { 'src': 'andp-10', 'c_args': ['-DOP=landp'], 'should_fail': true }, 'landp-10': { 'src': 'andp-10', 'c_args': ['-DOP=landp'], 'should_fail': true },
'movep-1': {}, 'movep-1': {},
'movep-2': { 'should_fail': true },
'movep-3': {},
'movep-4': { 'should_fail': true },
'movep-5': { 'should_fail': true },
'cascading-1': {}, 'cascading-1': {},
'cascading-2': {}, 'cascading-2': {},
'clp-arg-1': {}, 'clp-arg-1': {},

17
tests/asm/plu/movep-2.S Normal file
View File

@ -0,0 +1,17 @@
#include "test_start.S"
invalid64 %g16
{
cmpbsb,0 0, 1, %pred0
cmpesb,1,sm 0, %g16, %pred1
cmpesb,3 0, 0, %pred4
}
{
pass %pred0, @p0
pass %pred1, @p1
movep @p0, @p1, @p4
pass @p4, %pred4
}
addd,0 0, 0, %empty ? %pred4
#include "test_end.S"

17
tests/asm/plu/movep-3.S Normal file
View File

@ -0,0 +1,17 @@
#include "test_start.S"
invalid64 %g16
{
cmpbsb,0 0, 0, %pred0
cmpesb,1,sm 0, %g16, %pred1
cmpesb,3 0, 0, %pred4
}
{
pass %pred0, @p0
pass %pred1, @p1
movep @p0, @p1, @p4
pass @p4, %pred4
}
addd,0 0, 0, %empty ? %pred4
#include "test_end.S"

17
tests/asm/plu/movep-4.S Normal file
View File

@ -0,0 +1,17 @@
#include "test_start.S"
invalid64 %g16
{
cmpbsb,0 0, 0, %pred0
cmpesb,1 0, 0, %pred1
}
cmpesb,3,sm 0, %g16, %pred4
{
pass %pred0, @p0
pass %pred1, @p1
movep @p0, @p1, @p4
pass @p4, %pred4
}
addd,0 0, 0, %empty ? %pred4
#include "test_end.S"

17
tests/asm/plu/movep-5.S Normal file
View File

@ -0,0 +1,17 @@
#include "test_start.S"
invalid64 %g16
{
cmpbsb,0,sm 0, %g16, %pred0
cmpesb,1 0, 0, %pred1
}
cmpesb,3 0, 0, %pred4
{
pass %pred0, @p0
pass %pred1, @p1
movep @p0, @p1, @p4
pass @p4, %pred4
}
addd,0 0, 0, %empty ? %pred4
#include "test_end.S"