changeset 705:cee4c80bfc7c draft

New tests added into imul.clj.
author Pavel Tisnovsky <ptisnovs@redhat.com>
date Tue, 29 Mar 2016 11:43:38 +0200
parents 91385b6d4287
children ddde51592da4
files ChangeLog src/tests/imul.clj
diffstat 2 files changed, 85 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Mar 29 11:29:12 2016 +0200
+++ b/ChangeLog	Tue Mar 29 11:43:38 2016 +0200
@@ -1,3 +1,8 @@
+2016-03-27  Pavel Tisnovsky  <ptisnovs@redhat.com>
+
+	* src/tests/imul.clj:
+	New tests added into imul.clj.
+
 2016-03-27  Pavel Tisnovsky  <ptisnovs@redhat.com>
 
 	* src/tests/iadd.clj:
--- a/src/tests/imul.clj	Tue Mar 29 11:29:12 2016 +0200
+++ b/src/tests/imul.clj	Tue Mar 29 11:43:38 2016 +0200
@@ -4863,6 +4863,86 @@
         [:ireturn]
     ])
 
+; check the following operation: result = 7 * 253
+; by using the JVM instruction:  imul
+(def test7imul253
+    [
+        [:iconst 7]
+        [:iconst 253]
+        [:imul]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 7 * 254
+; by using the JVM instruction:  imul
+(def test7imul254
+    [
+        [:iconst 7]
+        [:iconst 254]
+        [:imul]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 7 * 255
+; by using the JVM instruction:  imul
+(def test7imul255
+    [
+        [:iconst 7]
+        [:iconst 255]
+        [:imul]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 7 * 256
+; by using the JVM instruction:  imul
+(def test7imul256
+    [
+        [:iconst 7]
+        [:iconst 256]
+        [:imul]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 7 * 257
+; by using the JVM instruction:  imul
+(def test7imul257
+    [
+        [:iconst 7]
+        [:iconst 257]
+        [:imul]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 7 * 258
+; by using the JVM instruction:  imul
+(def test7imul258
+    [
+        [:iconst 7]
+        [:iconst 258]
+        [:imul]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 7 * 259
+; by using the JVM instruction:  imul
+(def test7imul259
+    [
+        [:iconst 7]
+        [:iconst 259]
+        [:imul]
+        [:ireturn]
+    ])
+
+; check the following operation: result = 7 * 260
+; by using the JVM instruction:  imul
+(def test7imul260
+    [
+        [:iconst 7]
+        [:iconst 260]
+        [:imul]
+        [:ireturn]
+    ])
+
 (defn generate-test
     "Method called by the Bytecode synth core to generate test class."
     [generated-class]