Add some Pretty instances

and golden tests
This commit is contained in:
Francesco Gazzetta
2022-07-01 20:14:43 +02:00
parent 594fcdc173
commit 91fa85e816
14 changed files with 178 additions and 3 deletions

1
golden/const.qbe Normal file
View File

@@ -0,0 +1 @@
[-1, 2, s_0.1, d_-0.2, $global]

1
golden/ident.qbe Normal file
View File

@@ -0,0 +1 @@
[:aggregateTy, $global, %temporary, @label]

1
golden/jmp.qbe Normal file
View File

@@ -0,0 +1 @@
jmp @target

1
golden/jnz.qbe Normal file
View File

@@ -0,0 +1 @@
jnz 0, @target1, @target2

1
golden/linkage.qbe Normal file
View File

@@ -0,0 +1 @@
(export, section secName, section secName flag1 flag2)

1
golden/opaque.qbe Normal file
View File

@@ -0,0 +1 @@
type :t = align 8 {16}

1
golden/ret.qbe Normal file
View File

@@ -0,0 +1 @@
ret %x

1
golden/type.qbe Normal file
View File

@@ -0,0 +1 @@
([w, l, s, d], [w, b, h])

1
golden/typedef.qbe Normal file
View File

@@ -0,0 +1 @@
type :t = 8 {h 16, :t1}

1
golden/val.qbe Normal file
View File

@@ -0,0 +1 @@
[0, %temporary, $global]