Add simple lsr tests.
This commit is contained in:
parent
7fee8a00dd
commit
8a6305a948
|
@ -0,0 +1,3 @@
|
||||||
|
c
|
||||||
|
c
|
||||||
|
info registers
|
|
@ -0,0 +1,15 @@
|
||||||
|
Breakpoint 1 at 0x10088
|
||||||
|
Breakpoint 2 at 0x10208
|
||||||
|
0x0000000000010078 in _start ()
|
||||||
|
|
||||||
|
Breakpoint 1, 0x0000000000010088 in _start ()
|
||||||
|
|
||||||
|
Breakpoint 2, 0x0000000000010208 in _stop ()
|
||||||
|
r0 <00> 0x1 1
|
||||||
|
r1 <00> 0x1 1
|
||||||
|
r2 <00> 0x2 2
|
||||||
|
r3 <00> 0x3 3
|
||||||
|
r4 <00> 0x8 8
|
||||||
|
r5 <00> 0x2 2
|
||||||
|
r6 <00> 0xa 10
|
||||||
|
r7 <00> 0x9 9
|
|
@ -0,0 +1,33 @@
|
||||||
|
.global _start
|
||||||
|
.global _stop
|
||||||
|
|
||||||
|
_start:
|
||||||
|
setwd wsz=4, nfx=1
|
||||||
|
|
||||||
|
.macro loop r, p=0, l=0, e=0, s=0
|
||||||
|
{
|
||||||
|
nop 3
|
||||||
|
addd 0, 0, \r
|
||||||
|
disp %ctpr1, 0f
|
||||||
|
rwd (\s << 53) | (\p << 48) | (1UL << 37) | (\e << 32) | \l, %lsr
|
||||||
|
}
|
||||||
|
0:
|
||||||
|
{
|
||||||
|
addd \r, 1, \r
|
||||||
|
alc alcf=1, alct=1
|
||||||
|
ct %ctpr1 ? #NOT_LOOP_END
|
||||||
|
}
|
||||||
|
.endm
|
||||||
|
|
||||||
|
loop %r0, 0UL, 0, 0UL
|
||||||
|
loop %r1, 0UL, 1, 0UL
|
||||||
|
loop %r2, 0UL, 2, 0UL
|
||||||
|
loop %r3, 0UL, 3, 0UL
|
||||||
|
loop %r4, 4UL, 8, 0UL
|
||||||
|
loop %r5, 8UL, 2, 0UL
|
||||||
|
loop %r6, 4UL, 8, 2UL
|
||||||
|
loop %r7, 4UL, 0, 8UL
|
||||||
|
|
||||||
|
_stop:
|
||||||
|
udivs 0, 0, %empty
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
c
|
||||||
|
c
|
||||||
|
info registers
|
|
@ -0,0 +1,15 @@
|
||||||
|
Breakpoint 1 at 0x10088
|
||||||
|
Breakpoint 2 at 0x10248
|
||||||
|
0x0000000000010078 in _start ()
|
||||||
|
|
||||||
|
Breakpoint 1, 0x0000000000010088 in _start ()
|
||||||
|
|
||||||
|
Breakpoint 2, 0x0000000000010248 in _stop ()
|
||||||
|
r0 <00> 0x1 1
|
||||||
|
r1 <00> 0x1 1
|
||||||
|
r2 <00> 0x1 1
|
||||||
|
r3 <00> 0x2 2
|
||||||
|
r4 <00> 0x7 7
|
||||||
|
r5 <00> 0x1 1
|
||||||
|
r6 <00> 0x9 9
|
||||||
|
r7 <00> 0x8 8
|
|
@ -0,0 +1,31 @@
|
||||||
|
.global _start
|
||||||
|
.global _stop
|
||||||
|
|
||||||
|
_start:
|
||||||
|
setwd wsz=4, nfx=1
|
||||||
|
|
||||||
|
.macro loop r, p=0, l=0, e=0, s=0
|
||||||
|
{
|
||||||
|
nop 3
|
||||||
|
addd 0, 0, \r
|
||||||
|
disp %ctpr1, 0f
|
||||||
|
rwd (\s << 53) | (\p << 48) | (1UL << 37) | (\e << 32) | \l, %lsr
|
||||||
|
}
|
||||||
|
0:
|
||||||
|
addd \r, 1, \r
|
||||||
|
alc alcf=1, alct=1
|
||||||
|
ct %ctpr1 ? #NOT_LOOP_END
|
||||||
|
.endm
|
||||||
|
|
||||||
|
loop %r0, 0UL, 0, 0UL
|
||||||
|
loop %r1, 0UL, 1, 0UL
|
||||||
|
loop %r2, 0UL, 2, 0UL
|
||||||
|
loop %r3, 0UL, 3, 0UL
|
||||||
|
loop %r4, 4UL, 8, 0UL
|
||||||
|
loop %r5, 8UL, 2, 0UL
|
||||||
|
loop %r6, 4UL, 8, 2UL
|
||||||
|
loop %r7, 4UL, 0, 8UL
|
||||||
|
|
||||||
|
_stop:
|
||||||
|
udivs 0, 0, %empty
|
||||||
|
|
Loading…
Reference in New Issue