From f83083c1c60c099aa38f87d9c164fb83bdd75042 Mon Sep 17 00:00:00 2001 From: Denis Drakhnia Date: Fri, 5 Jan 2024 08:16:13 +0200 Subject: [PATCH] asm/sm: add qual-10 --- tests/asm/meson.build | 1 + tests/asm/sm/qual-10.S | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 tests/asm/sm/qual-10.S diff --git a/tests/asm/meson.build b/tests/asm/meson.build index 2e1c725..cb89fe8 100644 --- a/tests/asm/meson.build +++ b/tests/asm/meson.build @@ -160,6 +160,7 @@ asm_tests = { 'qual-7': { 'should_fail': true }, 'qual-8': {}, 'qual-9': { 'should_fail': true }, + 'qual-10': {}, 'qual-call-1': { 'should_fail': true }, 'qual-ct-1': { 'should_fail': true }, 'qual-ct-2': {}, diff --git a/tests/asm/sm/qual-10.S b/tests/asm/sm/qual-10.S new file mode 100644 index 0000000..357ff78 --- /dev/null +++ b/tests/asm/sm/qual-10.S @@ -0,0 +1,14 @@ +#include "test_start.S" + + setwd wsz=8, nfx=1 + invalid64 %r0 + cmpedb,0,sm 0, %r0, %pred0 + subd,0,sm 0, 1, %r0 ? %pred0 + { + puttagd,2 %r0, 0, %r0 + gettagd,5 %r0, %r1 + } + assert_eq_i64(%r0, 0xffffffffffffffff) + assert_eq_i32(%r1, 0x5) + +#include "test_end.S"