From b556e0086a4321ed42a1a1a8aa68541b4a9248d0 Mon Sep 17 00:00:00 2001 From: Denis Drakhnia Date: Fri, 5 Jan 2024 12:52:34 +0200 Subject: [PATCH] asm/plu: add movep tests --- tests/asm/meson.build | 4 ++++ tests/asm/plu/movep-2.S | 17 +++++++++++++++++ tests/asm/plu/movep-3.S | 17 +++++++++++++++++ tests/asm/plu/movep-4.S | 17 +++++++++++++++++ tests/asm/plu/movep-5.S | 17 +++++++++++++++++ 5 files changed, 72 insertions(+) create mode 100644 tests/asm/plu/movep-2.S create mode 100644 tests/asm/plu/movep-3.S create mode 100644 tests/asm/plu/movep-4.S create mode 100644 tests/asm/plu/movep-5.S diff --git a/tests/asm/meson.build b/tests/asm/meson.build index 6563b5e..2e8d6ec 100644 --- a/tests/asm/meson.build +++ b/tests/asm/meson.build @@ -116,6 +116,10 @@ asm_tests = { 'landp-9': { 'src': 'andp-9', 'c_args': ['-DOP=landp'] }, 'landp-10': { 'src': 'andp-10', 'c_args': ['-DOP=landp'], 'should_fail': true }, 'movep-1': {}, + 'movep-2': { 'should_fail': true }, + 'movep-3': {}, + 'movep-4': { 'should_fail': true }, + 'movep-5': { 'should_fail': true }, 'cascading-1': {}, 'cascading-2': {}, 'clp-arg-1': {}, diff --git a/tests/asm/plu/movep-2.S b/tests/asm/plu/movep-2.S new file mode 100644 index 0000000..8533e26 --- /dev/null +++ b/tests/asm/plu/movep-2.S @@ -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" diff --git a/tests/asm/plu/movep-3.S b/tests/asm/plu/movep-3.S new file mode 100644 index 0000000..1dc111c --- /dev/null +++ b/tests/asm/plu/movep-3.S @@ -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" diff --git a/tests/asm/plu/movep-4.S b/tests/asm/plu/movep-4.S new file mode 100644 index 0000000..6d83299 --- /dev/null +++ b/tests/asm/plu/movep-4.S @@ -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" diff --git a/tests/asm/plu/movep-5.S b/tests/asm/plu/movep-5.S new file mode 100644 index 0000000..a04626c --- /dev/null +++ b/tests/asm/plu/movep-5.S @@ -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"