asm/decode: skip unaligned tests for >=lcc-1.28

This commit is contained in:
Denis Drakhnia 2024-01-10 18:42:00 +02:00
parent 7d99191317
commit 6cfd276014
4 changed files with 22 additions and 2 deletions

View File

@ -1,10 +1,16 @@
#include "common.S" #include "common.S"
#if __LCC__ < 120
.text .text
.global _start .global _start
.balign 8 .balign 8
.byte 0 .byte 0
_start: _start:
nop nop
#include "test_end.S" #include "test_end.S"
#else
#include "test_start.S"
skip_test
#include "test_end.S"
#endif

View File

@ -1,5 +1,6 @@
#include "test_start.S" #include "test_start.S"
#if __LCC__ < 120
ibranch 1f ibranch 1f
0: 0:
@ -9,3 +10,7 @@
.byte 0 .byte 0
1: 1:
ibranch 0b ibranch 0b
#else
skip_test
#include "test_end.S"
#endif

View File

@ -1,8 +1,8 @@
#include "test_start.S" #include "test_start.S"
#if __LCC__ < 120
disp %ctpr1, 1f disp %ctpr1, 1f
ct %ctpr1 ct %ctpr1
0:
#include "test_end.S" #include "test_end.S"
@ -10,3 +10,7 @@
.byte 0 .byte 0
1: 1:
ibranch 0b ibranch 0b
#else
skip_test
#include "test_end.S"
#endif

View File

@ -1,5 +1,6 @@
#include "test_start.S" #include "test_start.S"
#if __LCC__ < 120
{ {
setwd wsz=4, nfx=1 setwd wsz=4, nfx=1
disp %ctpr1, 1f disp %ctpr1, 1f
@ -13,3 +14,7 @@
1: 1:
return %ctpr3 return %ctpr3
ct %ctpr3 ct %ctpr3
#else
skip_test
#include "test_end.S"
#endif