aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-03-10 20:57:45 +0000
committerYann Herklotz <ymherklotz@gmail.com>2017-03-10 20:57:45 +0000
commite6e386454af26fa4f0bccef12fcdc701f83a294c (patch)
tree4e0ebbbfff52560ab443d7fc6207440999b63b13
parenta1b89a245860ed487829cf40dbee40f35edee12e (diff)
downloadCompiler-e6e386454af26fa4f0bccef12fcdc701f83a294c.tar.gz
Compiler-e6e386454af26fa4f0bccef12fcdc701f83a294c.zip
removing test cases output
-rw-r--r--c_compiler/.gitignore4
-rw-r--r--c_compiler/test/.gitignore4
-rw-r--r--c_compiler/test/out/01.stderr.txt0
-rw-r--r--c_compiler/test/out/05.s0
-rw-r--r--c_compiler/test/out/05.stderr.txt1
-rwxr-xr-xc_compiler/test/ref/01bin0 -> 672160 bytes
-rw-r--r--c_compiler/test/ref/01.s35
-rwxr-xr-xc_compiler/test/ref/05bin0 -> 676280 bytes
-rw-r--r--c_compiler/test/ref/05.s47
9 files changed, 89 insertions, 2 deletions
diff --git a/c_compiler/.gitignore b/c_compiler/.gitignore
new file mode 100644
index 0000000..bfccdc8
--- /dev/null
+++ b/c_compiler/.gitignore
@@ -0,0 +1,4 @@
+./GTAGS
+./GRTAGS
+./GPATH
+./TAGS
diff --git a/c_compiler/test/.gitignore b/c_compiler/test/.gitignore
index 9ff5da3..55e9a31 100644
--- a/c_compiler/test/.gitignore
+++ b/c_compiler/test/.gitignore
@@ -1,2 +1,2 @@
-out/
-ref/
+./out/
+./ref/
diff --git a/c_compiler/test/out/01.stderr.txt b/c_compiler/test/out/01.stderr.txt
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/c_compiler/test/out/01.stderr.txt
diff --git a/c_compiler/test/out/05.s b/c_compiler/test/out/05.s
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/c_compiler/test/out/05.s
diff --git a/c_compiler/test/out/05.stderr.txt b/c_compiler/test/out/05.stderr.txt
new file mode 100644
index 0000000..677c44f
--- /dev/null
+++ b/c_compiler/test/out/05.stderr.txt
@@ -0,0 +1 @@
+Invalid token
diff --git a/c_compiler/test/ref/01 b/c_compiler/test/ref/01
new file mode 100755
index 0000000..14d78ae
--- /dev/null
+++ b/c_compiler/test/ref/01
Binary files differ
diff --git a/c_compiler/test/ref/01.s b/c_compiler/test/ref/01.s
new file mode 100644
index 0000000..f7c1c41
--- /dev/null
+++ b/c_compiler/test/ref/01.s
@@ -0,0 +1,35 @@
+ .file 1 "01.c"
+ .section .mdebug.abi32
+ .previous
+ .nan legacy
+ .module fp=xx
+ .module nooddspreg
+ .abicalls
+ .text
+ .align 2
+ .globl main
+ .set nomips16
+ .set nomicromips
+ .ent main
+ .type main, @function
+main:
+ .frame $fp,8,$31 # vars= 0, regs= 1/0, args= 0, gp= 0
+ .mask 0x40000000,-4
+ .fmask 0x00000000,0
+ .set noreorder
+ .set nomacro
+ addiu $sp,$sp,-8
+ sw $fp,4($sp)
+ move $fp,$sp
+ li $2,13 # 0xd
+ move $sp,$fp
+ lw $fp,4($sp)
+ addiu $sp,$sp,8
+ j $31
+ nop
+
+ .set macro
+ .set reorder
+ .end main
+ .size main, .-main
+ .ident "GCC: (Ubuntu 5.4.0-6ubuntu1~16.04.1) 5.4.0 20160609"
diff --git a/c_compiler/test/ref/05 b/c_compiler/test/ref/05
new file mode 100755
index 0000000..b8d4c2e
--- /dev/null
+++ b/c_compiler/test/ref/05
Binary files differ
diff --git a/c_compiler/test/ref/05.s b/c_compiler/test/ref/05.s
new file mode 100644
index 0000000..a8a6ea5
--- /dev/null
+++ b/c_compiler/test/ref/05.s
@@ -0,0 +1,47 @@
+ .file 1 "05.c"
+ .section .mdebug.abi32
+ .previous
+ .nan legacy
+ .module fp=xx
+ .module nooddspreg
+ .abicalls
+
+ .comm glob,4,4
+ .rdata
+ .align 2
+$LC0:
+ .ascii "Yann\000"
+ .text
+ .align 2
+ .globl main
+ .set nomips16
+ .set nomicromips
+ .ent main
+ .type main, @function
+main:
+ .frame $fp,8,$31 # vars= 0, regs= 1/0, args= 0, gp= 0
+ .mask 0x40000000,-4
+ .fmask 0x00000000,0
+ .set noreorder
+ .set nomacro
+ addiu $sp,$sp,-8
+ sw $fp,4($sp)
+ move $fp,$sp
+ lui $28,%hi(__gnu_local_gp)
+ addiu $28,$28,%lo(__gnu_local_gp)
+ lw $2,%got(glob)($28)
+ lui $3,%hi($LC0)
+ addiu $3,$3,%lo($LC0)
+ sw $3,0($2)
+ move $2,$0
+ move $sp,$fp
+ lw $fp,4($sp)
+ addiu $sp,$sp,8
+ j $31
+ nop
+
+ .set macro
+ .set reorder
+ .end main
+ .size main, .-main
+ .ident "GCC: (Ubuntu 5.4.0-6ubuntu1~16.04.1) 5.4.0 20160609"