codegen/div: clear edx before use div insn
[mate.git] / tests / Div1.java
diff --git a/tests/Div1.java b/tests/Div1.java
new file mode 100644 (file)
index 0000000..3e728ba
--- /dev/null
@@ -0,0 +1,12 @@
+package tests;
+
+public class Div1 {
+       public static void main(String []args) {
+               int a = 100;
+               int b = 23;
+               System.out.printf("%d\n", a / b);
+               System.out.printf("%d\n", a % b);
+               System.out.printf("%d\n", b / a);
+               System.out.printf("%d\n", b % a);
+       }
+}