changeset 683:6a46a73963fb draft

Eleven new tests added into iadd.clj.
author Pavel Tisnovsky <ptisnovs@redhat.com>
date Wed, 09 Mar 2016 11:08:57 +0100
parents bf5daf1d7615
children 33564adba90e
files ChangeLog src/tests/iadd.clj
diffstat 2 files changed, 115 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon Mar 07 12:00:31 2016 +0100
+++ b/ChangeLog	Wed Mar 09 11:08:57 2016 +0100
@@ -1,3 +1,8 @@
+2016-03-09  Pavel Tisnovsky  <ptisnovs@redhat.com>
+
+	* src/tests/iadd.clj:
+	Eleven new tests added into iadd.clj.
+
 2016-03-07  Pavel Tisnovsky  <ptisnovs@redhat.com>
 
 	* src/tests/iadd.clj:
--- a/src/tests/iadd.clj	Mon Mar 07 12:00:31 2016 +0100
+++ b/src/tests/iadd.clj	Wed Mar 09 11:08:57 2016 +0100
@@ -9593,6 +9593,116 @@
         [:ireturn]
     ])
 
+; check the following operation: result = 128 + 133
+; by using the JVM instruction:  iadd
+(def test128iadd133
+    [
+        [:iconst 128]
+        [:iconst 133]
+        [:iadd]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 128 + 251
+; by using the JVM instruction:  iadd
+(def test128iadd251
+    [
+        [:iconst 128]
+        [:iconst 251]
+        [:iadd]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 128 + 252
+; by using the JVM instruction:  iadd
+(def test128iadd252
+    [
+        [:iconst 128]
+        [:iconst 252]
+        [:iadd]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 128 + 253
+; by using the JVM instruction:  iadd
+(def test128iadd253
+    [
+        [:iconst 128]
+        [:iconst 253]
+        [:iadd]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 128 + 254
+; by using the JVM instruction:  iadd
+(def test128iadd254
+    [
+        [:iconst 128]
+        [:iconst 254]
+        [:iadd]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 128 + 255
+; by using the JVM instruction:  iadd
+(def test128iadd255
+    [
+        [:iconst 128]
+        [:iconst 255]
+        [:iadd]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 128 + 256
+; by using the JVM instruction:  iadd
+(def test128iadd256
+    [
+        [:iconst 128]
+        [:iconst 256]
+        [:iadd]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 128 + 257
+; by using the JVM instruction:  iadd
+(def test128iadd257
+    [
+        [:iconst 128]
+        [:iconst 257]
+        [:iadd]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 128 + 258
+; by using the JVM instruction:  iadd
+(def test128iadd258
+    [
+        [:iconst 128]
+        [:iconst 258]
+        [:iadd]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 128 + 259
+; by using the JVM instruction:  iadd
+(def test128iadd259
+    [
+        [:iconst 128]
+        [:iconst 259]
+        [:iadd]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 128 + 260
+; by using the JVM instruction:  iadd
+(def test128iadd260
+    [
+        [:iconst 128]
+        [:iconst 260]
+        [:iadd]
+        [:ireturn]
+    ])
+
 (def test129iadd0
     [
         [:iconst 129]