aboutsummaryrefslogtreecommitdiffstats
path: root/test_compiler.sh
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 /test_compiler.sh
parentde1f50c2bfa7dfc3b758a0cb89c856534c4ab3a1 (diff)
downloadCompiler-fd25256a37696de23d8f6c99827a97b63733845d.tar.gz
Compiler-fd25256a37696de23d8f6c99827a97b63733845d.zip
Have to improve reg allocation
Diffstat (limited to 'test_compiler.sh')
-rwxr-xr-xtest_compiler.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/test_compiler.sh b/test_compiler.sh
index 700afe5..65fb311 100755
--- a/test_compiler.sh
+++ b/test_compiler.sh
@@ -30,10 +30,10 @@ for i in c_compiler/test/in/*.c; do
BASENAME=$(basename $i .c);
cat $i | ./bin/c_compiler > c_compiler/test/out/$BASENAME.s 2> c_compiler/test/out/$BASENAME.stderr.txt
- mips-linux-gnu-gcc -S -c c_compiler/test/in/$BASENAME.c -o c_compiler/test/ref/$BASENAME.s
- mips-linux-gnu-gcc -static c_compiler/test/ref/$BASENAME.s -o c_compiler/test/ref/$BASENAME
+ mips-linux-gnu-gcc -O0 -S -c c_compiler/test/in/$BASENAME.c -o c_compiler/test/ref/$BASENAME.s
+ mips-linux-gnu-gcc -O0 -static c_compiler/test/ref/$BASENAME.s -o c_compiler/test/ref/$BASENAME
- mips-linux-gnu-gcc -static c_compiler/test/out/$BASENAME.s -o c_compiler/test/out/$BASENAME
+ mips-linux-gnu-gcc -O0 -static c_compiler/test/out/$BASENAME.s -o c_compiler/test/out/$BASENAME
qemu-mips c_compiler/test/ref/$BASENAME
REFOUTPUT=$?