summaryrefslogtreecommitdiff
path: root/ecomp-c/test1.e
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2020-03-28 20:40:20 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2020-03-28 20:40:20 +0100
commitdb176b6b1438b9e3d6eedaeee4402177a38dafd8 (patch)
tree27b1aa36d6823bc25671353fd7c15d3b658a289d /ecomp-c/test1.e
parent2d8c0ee5c719c31a31b89500b20bf5f1a809489e (diff)
downloadcompilertests-db176b6b1438b9e3d6eedaeee4402177a38dafd8.tar.gz
compilertests-db176b6b1438b9e3d6eedaeee4402177a38dafd8.tar.bz2
implemented evaluation of equals in expression with relational operator in ec
started to implement cmp, je, jmp in asm-i386
Diffstat (limited to 'ecomp-c/test1.e')
-rw-r--r--ecomp-c/test1.e5
1 files changed, 5 insertions, 0 deletions
diff --git a/ecomp-c/test1.e b/ecomp-c/test1.e
index 5dbb04d..41d9f28 100644
--- a/ecomp-c/test1.e
+++ b/ecomp-c/test1.e
@@ -33,5 +33,10 @@ begin
e := ( ( 7 * a + b ) + 2 * ( b + a + 3 ) ) * 4 / 2; // ((7*8+7)+2*(7+8+3))*4/2=198 (C6 hex)
f := a - b; // should be 8-7=1
flag := INIT_STATE; // should be false
+ flag := a = b; // flag should be true
+ //flag := a <> b; // flag should be true
+ //flag := a < b; // flag should be true
+ //flag := a <= b; // flag should be true
//flag := a > b; // flag should be true
+ //flag := a >= b; // flag should be true
end