Update test case to provoke bug.

This commit is contained in:
David Given 2019-02-13 20:10:38 +01:00
parent 55f3880f43
commit eb57db75a4
3 changed files with 95 additions and 0 deletions

View file

@ -8,6 +8,8 @@ three
rom 3 rom 3
one one
rom 1 rom 1
mone
rom -1
big big
rom 256 rom 256
@ -81,5 +83,33 @@ big
asp 4 asp 4
5 5
/* And big const with negative var */
loc 257
loe mone
and EM_WSIZE
loc 257
cmu EM_WSIZE
zeq *6
loc __LINE__
cal $fail
asp 4
6
/* And big var with negative const */
loe big
loc -1
and EM_WSIZE
loe big
cmu EM_WSIZE
zeq *7
loc __LINE__
cal $fail
asp 4
7
cal $finished cal $finished
end end

View file

@ -8,6 +8,10 @@ zero
rom 0 rom 0
one one
rom 1 rom 1
mone
rom -1
big
rom 257
/* Or var with var */ /* Or var with var */
@ -79,5 +83,33 @@ one
asp 4 asp 4
5 5
/* Or big const with negative var */
loc 1000
loe mone
ior EM_WSIZE
loc -1
cmu EM_WSIZE
zeq *6
loc __LINE__
cal $fail
asp 4
6
/* Or big var with negative const */
loe big
loc -1
ior EM_WSIZE
loe big
cmu EM_WSIZE
zeq *7
loc __LINE__
cal $fail
asp 4
7
cal $finished cal $finished
end end

View file

@ -8,6 +8,10 @@ three
rom 3 rom 3
one one
rom 1 rom 1
mone
rom -1
big
rom 1001
/* Xor var with var */ /* Xor var with var */
@ -79,5 +83,34 @@ one
asp 4 asp 4
5 5
/* Xor big const with negative var */
loc 1001
loe mone
xor EM_WSIZE
loc -1002
cmu EM_WSIZE
zeq *6
loc __LINE__
cal $fail
asp 4
6
/* Xor big var with negative const */
loe big
loc -1
xor EM_WSIZE
loc -1002
cmu EM_WSIZE
zeq *7
loc __LINE__
cal $fail
asp 4
7
cal $finished cal $finished
end end