From 8624b4530cbccb641ebecc18356bfff584c3bcb2 Mon Sep 17 00:00:00 2001 From: Marcel Date: Tue, 9 Nov 2021 17:34:53 +0100 Subject: [PATCH] Fixed stack frames --- src/compiler/codegen/instr.fut | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/compiler/codegen/instr.fut b/src/compiler/codegen/instr.fut index 62155e9..1ed3dd3 100644 --- a/src/compiler/codegen/instr.fut +++ b/src/compiler/codegen/instr.fut @@ -42,8 +42,8 @@ let INSTR_TABLE : [][][]u32 = [ ], --Empty statement [ -- Invalid Void Int Float Int_ref Float_ref [0b0000000_01000_00010_000_00010_0110011, 0b0000000_01000_00010_000_00010_0110011, 0b0000000_01000_00010_000_00010_0110011, 0b0000000_01000_00010_000_00010_0110011, 0b0000000_01000_00010_000_00010_0110011, 0b0000000_01000_00010_000_00010_0110011], - [0b1111111_11100_00010_010_00001_0100011, 0b1111111_11100_00010_010_00001_0100011, 0b1111111_11100_00010_010_00001_0100011, 0b1111111_11100_00010_010_00001_0100011, 0b1111111_11100_00010_010_00001_0100011, 0b1111111_11100_00010_010_00001_0100011], - [0b1111111_11000_00010_010_01000_0100011, 0b1111111_11000_00010_010_01000_0100011, 0b1111111_11000_00010_010_01000_0100011, 0b1111111_11000_00010_010_01000_0100011, 0b1111111_11000_00010_010_01000_0100011, 0b1111111_11000_00010_010_01000_0100011], + [0b1111111_11100_00010_010_00001_0000011, 0b1111111_11100_00010_010_00001_0000011, 0b1111111_11100_00010_010_00001_0000011, 0b1111111_11100_00010_010_00001_0000011, 0b1111111_11100_00010_010_00001_0000011, 0b1111111_11100_00010_010_00001_0000011], + [0b1111111_11000_01000_010_01000_0000011, 0b1111111_11000_01000_010_01000_0000011, 0b1111111_11000_01000_010_01000_0000011, 0b1111111_11000_01000_010_01000_0000011, 0b1111111_11000_01000_010_01000_0000011, 0b1111111_11000_01000_010_01000_0000011], [0b0000000_00000_00001_000_00000_1100111, 0b0000000_00000_00001_000_00000_1100111, 0b0000000_00000_00001_000_00000_1100111, 0b0000000_00000_00001_000_00000_1100111, 0b0000000_00000_00001_000_00000_1100111, 0b0000000_00000_00001_000_00000_1100111] ], --Func decl [ -- Invalid Void Int Float Int_ref Float_ref @@ -275,9 +275,9 @@ let INSTR_TABLE : [][][]u32 = [ [0b0000000_00000_00000_000_00000_1110011, 0b0000000_00000_00000_000_00000_1110011, 0b0000000_00000_00000_000_00000_1110011, 0b0000000_00000_00000_000_00000_1110011, 0b0000000_00000_00000_000_00000_1110011, 0b0000000_00000_00000_000_00000_1110011] ], --While dummy [ -- Invalid Void Int Float Int_ref Float_ref - [0b1111111_00001_00010_010_11100_1110011, 0b1111111_00001_00010_010_11100_1110011, 0b1111111_00001_00010_010_11100_1110011, 0b1111111_00001_00010_010_11100_1110011, 0b1111111_00001_00010_010_11100_1110011, 0b1111111_00001_00010_010_11100_1110011], - [0b1111111_01000_00010_010_11000_1110011, 0b1111111_01000_00010_010_11000_1110011, 0b1111111_01000_00010_010_11000_1110011, 0b1111111_01000_00010_010_11000_1110011, 0b1111111_01000_00010_010_11000_1110011, 0b1111111_01000_00010_010_11000_1110011], - [0b0100000_01000_00010_011_00010_0110011, 0b0100000_01000_00010_011_00010_0110011, 0b0100000_01000_00010_011_00010_0110011, 0b0100000_01000_00010_011_00010_0110011, 0b0100000_01000_00010_011_00010_0110011, 0b0100000_01000_00010_011_00010_0110011], + [0b1111111_00001_00010_010_11100_0100011, 0b1111111_00001_00010_010_11100_0100011, 0b1111111_00001_00010_010_11100_0100011, 0b1111111_00001_00010_010_11100_0100011, 0b1111111_00001_00010_010_11100_0100011, 0b1111111_00001_00010_010_11100_0100011], + [0b1111111_01000_00010_010_11000_0100011, 0b1111111_01000_00010_010_11000_0100011, 0b1111111_01000_00010_010_11000_0100011, 0b1111111_01000_00010_010_11000_0100011, 0b1111111_01000_00010_010_11000_0100011, 0b1111111_01000_00010_010_11000_0100011], + [0b0100000_01000_00010_000_00010_0110011, 0b0100000_01000_00010_000_00010_0110011, 0b0100000_01000_00010_000_00010_0110011, 0b0100000_01000_00010_000_00010_0110011, 0b0100000_01000_00010_000_00010_0110011, 0b0100000_01000_00010_000_00010_0110011], [0b0000000_00010_01000_000_01000_0110011, 0b0000000_00010_01000_000_01000_0110011, 0b0000000_00010_01000_000_01000_0110011, 0b0000000_00010_01000_000_01000_0110011, 0b0000000_00010_01000_000_01000_0110011, 0b0000000_00010_01000_000_01000_0110011] ], --Func decl dummy [ -- Invalid Void Int Float Int_ref Float_ref