Update test case to provoke bug.
authorDavid Given <dg@cowlark.com>
Wed, 13 Feb 2019 19:10:38 +0000 (20:10 +0100)
committerDavid Given <dg@cowlark.com>
Wed, 13 Feb 2019 19:10:38 +0000 (20:10 +0100)
tests/plat/core/and_e.e
tests/plat/core/ior_e.e
tests/plat/core/xor_e.e

index 0fc697a..e37a84c 100644 (file)
@@ -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
index 3dc977d..27df832 100644 (file)
@@ -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
index 97b65f5..1031096 100644 (file)
@@ -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