Array descriptor ranges are inclusive; adjust aar and the tests to check for
this. All the tests except rotate build now!
This commit is contained in:
parent
f61500c51b
commit
ec0891469f
|
@ -10,7 +10,7 @@
|
|||
* An array descriptor is:
|
||||
*
|
||||
* +0 lower bound
|
||||
* +4 range (upper bound - lower bound)
|
||||
* +4 range (upper bound - lower bound); *inclusive*
|
||||
* +8 element size
|
||||
*/
|
||||
|
||||
|
@ -28,8 +28,8 @@
|
|||
subu r5, r5, r7 ! adjust index for non-zero lower bound
|
||||
|
||||
lw at, 4(r4) ! at = range
|
||||
slt at, r5, at ! at = adjusted index < range
|
||||
beq at, zero, .trap_earray
|
||||
slt at, at, r5 ! at = range < adjusted index
|
||||
bne at, zero, .trap_earray
|
||||
nop
|
||||
|
||||
lw r2, 8(r4) ! r2 = size of element
|
||||
|
|
|
@ -4,5 +4,5 @@ plat_testsuite {
|
|||
name = "tests",
|
||||
plat = "linuxmips",
|
||||
method = "qemu-mipsel",
|
||||
skipsets = {"m2"}
|
||||
-- skipsets = {"m2"},
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@ array
|
|||
|
||||
descriptor
|
||||
con -1 ; lower bound
|
||||
con 3 ; range
|
||||
con 2 ; range, *inclusive*
|
||||
con EM_WSIZE ; size of element
|
||||
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ array
|
|||
|
||||
descriptor
|
||||
con -1 ; lower bound
|
||||
con 3 ; range
|
||||
con 2 ; range, *inclusive*
|
||||
con EM_WSIZE ; size of element
|
||||
|
||||
exp $_m_a_i_n
|
||||
|
|
|
@ -15,7 +15,7 @@ array
|
|||
|
||||
descriptor
|
||||
con -1 ; lower bound
|
||||
con 3 ; range
|
||||
con 2 ; range, *inclusive*
|
||||
con EM_WSIZE ; size of element
|
||||
|
||||
element0
|
||||
|
|
Loading…
Reference in a new issue