summaryrefslogtreecommitdiff
path: root/miniany/test1.c
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2021-09-26 20:31:51 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2021-09-26 20:31:51 +0200
commit90689d22cccce853ab6cb7dd078baaa501afb777 (patch)
treee1a1f3b6e106fbbd52888c889b09a519d86545c6 /miniany/test1.c
parentd0491186abedd36a6e065e97bf29eaaf87f6f95c (diff)
downloadcompilertests-90689d22cccce853ab6cb7dd078baaa501afb777.tar.gz
compilertests-90689d22cccce853ab6cb7dd078baaa501afb777.tar.bz2
cc:
- fixed zeroing of EDX before division if operating register was EAX - implemented simple itoa in assembly in putint operation
Diffstat (limited to 'miniany/test1.c')
-rw-r--r--miniany/test1.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/miniany/test1.c b/miniany/test1.c
index d7015e2..707ff16 100644
--- a/miniany/test1.c
+++ b/miniany/test1.c
@@ -4,5 +4,6 @@ int i;
int j;
i = 12+25/5-2*3; // 25/5 -> 5, 12+5 -> 17, 2*3 -> 6, 17-6 -> 11
-j = i/3+3*4; // 11 / 3 -> 3, 3*4 -> 12, 3+12 -> 15
putint i;
+j = i/3+3*4; // 11 / 3 -> 3, 3*4 -> 12, 3+12 -> 15
+putint j;