asm/sm: add qual-10

This commit is contained in:
Denis Drakhnia 2024-01-05 08:16:13 +02:00
parent d06a82f9d5
commit f83083c1c6
2 changed files with 15 additions and 0 deletions

View File

@ -160,6 +160,7 @@ asm_tests = {
'qual-7': { 'should_fail': true }, 'qual-7': { 'should_fail': true },
'qual-8': {}, 'qual-8': {},
'qual-9': { 'should_fail': true }, 'qual-9': { 'should_fail': true },
'qual-10': {},
'qual-call-1': { 'should_fail': true }, 'qual-call-1': { 'should_fail': true },
'qual-ct-1': { 'should_fail': true }, 'qual-ct-1': { 'should_fail': true },
'qual-ct-2': {}, 'qual-ct-2': {},

14
tests/asm/sm/qual-10.S Normal file
View File

@ -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"