From d06a82f9d5521eb9ec0852b6e18fcfe2decb57a2 Mon Sep 17 00:00:00 2001 From: Denis Drakhnia Date: Fri, 5 Jan 2024 07:45:15 +0200 Subject: [PATCH] e2k/int: add ctpr write tests --- tests/asm/int/ctpr-write-1.S | 7 +++++++ tests/asm/int/ctpr-write-2.S | 6 ++++++ tests/asm/meson.build | 2 ++ 3 files changed, 15 insertions(+) create mode 100644 tests/asm/int/ctpr-write-1.S create mode 100644 tests/asm/int/ctpr-write-2.S diff --git a/tests/asm/int/ctpr-write-1.S b/tests/asm/int/ctpr-write-1.S new file mode 100644 index 0000000..b613971 --- /dev/null +++ b/tests/asm/int/ctpr-write-1.S @@ -0,0 +1,7 @@ +#include "test_start.S" + + movtd,0 0, %ctpr1 + movtcd,0 0, %ctpr1 +0: + +#include "test_end.S" diff --git a/tests/asm/int/ctpr-write-2.S b/tests/asm/int/ctpr-write-2.S new file mode 100644 index 0000000..329633a --- /dev/null +++ b/tests/asm/int/ctpr-write-2.S @@ -0,0 +1,6 @@ +#include "test_start.S" + + addd,0 0, 0f, %ctpr1 +0: + +#include "test_end.S" diff --git a/tests/asm/meson.build b/tests/asm/meson.build index 56e0733..2e1c725 100644 --- a/tests/asm/meson.build +++ b/tests/asm/meson.build @@ -129,6 +129,8 @@ asm_tests = { 'cmpd-1': {}, 'rwd-rrd-1': {}, 'rwd-alc-rrd-1': {}, + 'ctpr-write-1': {}, + 'ctpr-write-2': { 'should_fail': true }, }, 'sm': { 'dbl-1': {},