changeset 682:bf5daf1d7615 draft

Added new test cases into iadd.clj.
author Pavel Tisnovsky <ptisnovs@redhat.com>
date Mon, 07 Mar 2016 12:00:31 +0100
parents 9cf918133380
children 6a46a73963fb
files ChangeLog src/tests/iadd.clj
diffstat 2 files changed, 165 insertions(+), 40 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon Mar 07 11:29:59 2016 +0100
+++ b/ChangeLog	Mon Mar 07 12:00:31 2016 +0100
@@ -1,3 +1,8 @@
+2016-03-07  Pavel Tisnovsky  <ptisnovs@redhat.com>
+
+	* src/tests/iadd.clj:
+	Added new test cases into iadd.clj.
+
 2016-03-07  Pavel Tisnovsky  <ptisnovs@redhat.com>
 
 	* src/tests/iadd.clj:
--- a/src/tests/iadd.clj	Mon Mar 07 11:29:59 2016 +0100
+++ b/src/tests/iadd.clj	Mon Mar 07 12:00:31 2016 +0100
@@ -9433,6 +9433,166 @@
         [:ireturn]
     ])
 
+; check the following operation: result = 128 + 1
+; by using the JVM instruction:  iadd
+(def test128iadd1
+    [
+        [:iconst 128]
+        [:iconst_1]
+        [:iadd]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 128 + 2
+; by using the JVM instruction:  iadd
+(def test128iadd2
+    [
+        [:iconst 128]
+        [:iconst_2]
+        [:iadd]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 128 + 3
+; by using the JVM instruction:  iadd
+(def test128iadd3
+    [
+        [:iconst 128]
+        [:iconst_3]
+        [:iadd]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 128 + 4
+; by using the JVM instruction:  iadd
+(def test128iadd4
+    [
+        [:iconst 128]
+        [:iconst_4]
+        [:iadd]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 128 + 5
+; by using the JVM instruction:  iadd
+(def test128iadd5
+    [
+        [:iconst 128]
+        [:iconst 5]
+        [:iadd]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 128 + 6
+; by using the JVM instruction:  iadd
+(def test128iadd6
+    [
+        [:iconst 128]
+        [:iconst 6]
+        [:iadd]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 128 + 7
+; by using the JVM instruction:  iadd
+(def test128iadd7
+    [
+        [:iconst 128]
+        [:iconst 7]
+        [:iadd]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 128 + 124
+; by using the JVM instruction:  iadd
+(def test128iadd124
+    [
+        [:iconst 128]
+        [:iconst 124]
+        [:iadd]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 128 + 125
+; by using the JVM instruction:  iadd
+(def test128iadd125
+    [
+        [:iconst 128]
+        [:iconst 125]
+        [:iadd]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 128 + 126
+; by using the JVM instruction:  iadd
+(def test128iadd126
+    [
+        [:iconst 128]
+        [:iconst 126]
+        [:iadd]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 128 + 127
+; by using the JVM instruction:  iadd
+(def test128iadd127
+    [
+        [:iconst 128]
+        [:iconst 127]
+        [:iadd]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 128 + 128
+; by using the JVM instruction:  iadd
+(def test128iadd128
+    [
+        [:iconst 128]
+        [:iconst 128]
+        [:iadd]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 128 + 129
+; by using the JVM instruction:  iadd
+(def test128iadd129
+    [
+        [:iconst 128]
+        [:iconst 129]
+        [:iadd]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 128 + 130
+; by using the JVM instruction:  iadd
+(def test128iadd130
+    [
+        [:iconst 128]
+        [:iconst 130]
+        [:iadd]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 128 + 131
+; by using the JVM instruction:  iadd
+(def test128iadd131
+    [
+        [:iconst 128]
+        [:iconst 131]
+        [:iadd]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 128 + 132
+; by using the JVM instruction:  iadd
+(def test128iadd132
+    [
+        [:iconst 128]
+        [:iconst 132]
+        [:iadd]
+        [:ireturn]
+    ])
+
 (def test129iadd0
     [
         [:iconst 129]
@@ -9489,14 +9649,6 @@
         [:ireturn]
     ])
 
-(def test128iadd1
-    [
-        [:iconst 128]
-        [:iconst 1]
-        [:iadd]
-        [:ireturn]
-    ])
-
 (def test129iadd1
     [
         [:iconst 129]
@@ -9529,30 +9681,6 @@
         [:ireturn]
     ])
 
-(def test126iadd2
-    [
-        [:iconst 126]
-        [:iconst 2]
-        [:iadd]
-        [:ireturn]
-    ])
-
-(def test127iadd2
-    [
-        [:iconst 127]
-        [:iconst 2]
-        [:iadd]
-        [:ireturn]
-    ])
-
-(def test128iadd2
-    [
-        [:iconst 128]
-        [:iconst 2]
-        [:iadd]
-        [:ireturn]
-    ])
-
 (def test129iadd2
     [
         [:iconst 129]
@@ -9633,14 +9761,6 @@
         [:ireturn]
     ])
 
-(def test128iadd3
-    [
-        [:iconst 128]
-        [:iconst 3]
-        [:iadd]
-        [:ireturn]
-    ])
-
 (def test253iadd0
     [
         [:iconst 253]