changeset 684:33564adba90e draft

More tests added into iadd.clj.
author Pavel Tisnovsky <ptisnovs@redhat.com>
date Wed, 09 Mar 2016 11:21:08 +0100
parents 6a46a73963fb
children 145fe4af225f
files ChangeLog src/tests/iadd.clj
diffstat 2 files changed, 257 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Mar 09 11:08:57 2016 +0100
+++ b/ChangeLog	Wed Mar 09 11:21:08 2016 +0100
@@ -1,3 +1,8 @@
+2016-03-09  Pavel Tisnovsky  <ptisnovs@redhat.com>
+
+	* src/tests/iadd.clj:
+	More tests added into iadd.clj.
+
 2016-03-09  Pavel Tisnovsky  <ptisnovs@redhat.com>
 
 	* src/tests/iadd.clj:
--- a/src/tests/iadd.clj	Wed Mar 09 11:08:57 2016 +0100
+++ b/src/tests/iadd.clj	Wed Mar 09 11:21:08 2016 +0100
@@ -9703,6 +9703,258 @@
         [:ireturn]
     ])
 
+; check the following operation: result = 128 + 32764
+; by using the JVM instruction:  iadd
+(def test128iadd32764
+    [
+        [:iconst 128]
+        [:iconst 32764]
+        [:iadd]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 128 + 32765
+; by using the JVM instruction:  iadd
+(def test128iadd32765
+    [
+        [:iconst 128]
+        [:iconst 32765]
+        [:iadd]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 128 + 32766
+; by using the JVM instruction:  iadd
+(def test128iadd32766
+    [
+        [:iconst 128]
+        [:iconst 32766]
+        [:iadd]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 128 + 32767
+; by using the JVM instruction:  iadd
+(def test128iadd32767
+    [
+        [:iconst 128]
+        [:iconst 32767]
+        [:iadd]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 128 + 32768
+; by using the JVM instruction:  iadd
+(def test128iadd32768
+    [
+        [:iconst 128]
+        [:iconst 32768]
+        [:iadd]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 128 + 32769
+; by using the JVM instruction:  iadd
+(def test128iadd32769
+    [
+        [:iconst 128]
+        [:iconst 32769]
+        [:iadd]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 128 + 32770
+; by using the JVM instruction:  iadd
+(def test128iadd32770
+    [
+        [:iconst 128]
+        [:iconst 32770]
+        [:iadd]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 128 + 32771
+; by using the JVM instruction:  iadd
+(def test128iadd32771
+    [
+        [:iconst 128]
+        [:iconst 32771]
+        [:iadd]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 128 + 32772
+; by using the JVM instruction:  iadd
+(def test128iadd32772
+    [
+        [:iconst 128]
+        [:iconst 32772]
+        [:iadd]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 128 + 65531
+; by using the JVM instruction:  iadd
+(def test128iadd65531
+    [
+        [:iconst 128]
+        [:iconst 65531]
+        [:iadd]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 128 + 65532
+; by using the JVM instruction:  iadd
+(def test128iadd65532
+    [
+        [:iconst 128]
+        [:iconst 65532]
+        [:iadd]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 128 + 65533
+; by using the JVM instruction:  iadd
+(def test128iadd65533
+    [
+        [:iconst 128]
+        [:iconst 65533]
+        [:iadd]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 128 + 65534
+; by using the JVM instruction:  iadd
+(def test128iadd65534
+    [
+        [:iconst 128]
+        [:iconst 65534]
+        [:iadd]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 128 + 65535
+; by using the JVM instruction:  iadd
+(def test128iadd65535
+    [
+        [:iconst 128]
+        [:iconst 65535]
+        [:iadd]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 128 + 65536
+; by using the JVM instruction:  iadd
+(def test128iadd65536
+    [
+        [:iconst 128]
+        [:iconst 65536]
+        [:iadd]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 128 + 65537
+; by using the JVM instruction:  iadd
+(def test128iadd65537
+    [
+        [:iconst 128]
+        [:iconst 65537]
+        [:iadd]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 128 + 65538
+; by using the JVM instruction:  iadd
+(def test128iadd65538
+    [
+        [:iconst 128]
+        [:iconst 65538]
+        [:iadd]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 128 + 65539
+; by using the JVM instruction:  iadd
+(def test128iadd65539
+    [
+        [:iconst 128]
+        [:iconst 65539]
+        [:iadd]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 128 + 2147483641
+; by using the JVM instruction:  iadd
+(def test128iadd2147483641
+    [
+        [:iconst 128]
+        [:iconst 2147483641]
+        [:iadd]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 128 + 2147483642
+; by using the JVM instruction:  iadd
+(def test128iadd2147483642
+    [
+        [:iconst 128]
+        [:iconst 2147483642]
+        [:iadd]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 128 + 2147483643
+; by using the JVM instruction:  iadd
+(def test128iadd2147483643
+    [
+        [:iconst 128]
+        [:iconst 2147483643]
+        [:iadd]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 128 + 2147483644
+; by using the JVM instruction:  iadd
+(def test128iadd2147483644
+    [
+        [:iconst 128]
+        [:iconst 2147483644]
+        [:iadd]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 128 + 2147483645
+; by using the JVM instruction:  iadd
+(def test128iadd2147483645
+    [
+        [:iconst 128]
+        [:iconst 2147483645]
+        [:iadd]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 128 + 2147483646
+; by using the JVM instruction:  iadd
+(def test128iadd2147483646
+    [
+        [:iconst 128]
+        [:iconst 2147483646]
+        [:iadd]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 128 + 2147483647
+; by using the JVM instruction:  iadd
+(def test128iadd2147483647
+    [
+        [:iconst 128]
+        [:iconst 2147483647]
+        [:iadd]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 129 + 0
+; by using the JVM instruction:  iadd
 (def test129iadd0
     [
         [:iconst 129]