diff --git a/tests/plat/core/and_e.e b/tests/plat/core/and_e.e index 0fc697a9b..e37a84c6c 100644 --- a/tests/plat/core/and_e.e +++ b/tests/plat/core/and_e.e @@ -8,6 +8,8 @@ three rom 3 one rom 1 +mone + rom -1 big rom 256 @@ -81,5 +83,33 @@ big asp 4 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 end diff --git a/tests/plat/core/ior_e.e b/tests/plat/core/ior_e.e index 3dc977dab..27df8329d 100644 --- a/tests/plat/core/ior_e.e +++ b/tests/plat/core/ior_e.e @@ -8,6 +8,10 @@ zero rom 0 one rom 1 +mone + rom -1 +big + rom 257 /* Or var with var */ @@ -79,5 +83,33 @@ one asp 4 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 end diff --git a/tests/plat/core/xor_e.e b/tests/plat/core/xor_e.e index 97b65f586..10310964c 100644 --- a/tests/plat/core/xor_e.e +++ b/tests/plat/core/xor_e.e @@ -8,6 +8,10 @@ three rom 3 one rom 1 +mone + rom -1 +big + rom 1001 /* Xor var with var */ @@ -79,5 +83,34 @@ one asp 4 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 end