aboutsummaryrefslogtreecommitdiffstats
path: root/c_compiler/test/in/AddMult.c
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-03-12 11:08:03 +0000
committerYann Herklotz <ymherklotz@gmail.com>2017-03-12 11:08:03 +0000
commitfd25256a37696de23d8f6c99827a97b63733845d (patch)
treedbfc5f680dcdf78ac62f0d7f1d6bb09271e8a6b2 /c_compiler/test/in/AddMult.c
parentde1f50c2bfa7dfc3b758a0cb89c856534c4ab3a1 (diff)
downloadCompiler-fd25256a37696de23d8f6c99827a97b63733845d.tar.gz
Compiler-fd25256a37696de23d8f6c99827a97b63733845d.zip
Have to improve reg allocation
Diffstat (limited to 'c_compiler/test/in/AddMult.c')
-rw-r--r--c_compiler/test/in/AddMult.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/c_compiler/test/in/AddMult.c b/c_compiler/test/in/AddMult.c
new file mode 100644
index 0000000..a8fa566
--- /dev/null
+++ b/c_compiler/test/in/AddMult.c
@@ -0,0 +1,10 @@
+int main() {
+ int x;
+ int a = 8;
+ int b = 5;
+ int c = 7;
+ int d = 3;
+ x = a * b + c * d;
+
+ return x;
+}