This commit is contained in:
nora 2023-12-15 23:08:23 +01:00
parent 7fec1b1ce7
commit a22cc15b59
11 changed files with 54 additions and 54 deletions

View file

@ -1,5 +1,3 @@
//@check-pass
function dropping(a: I32) =
___asm(
__locals(),

View file

@ -1,4 +1,4 @@
error: unknown instruction: meow
--> $DIR/invalid_instr.nil:6
6 | "meow meow",
--> $DIR/invalid_instr.nil:4
4 | "meow meow",
^^^^^^^^^^^

View file

@ -1,5 +1,3 @@
//@check-pass
function dropping(a: I32) =
___asm(
"local.get 0",

View file

@ -1,4 +1,4 @@
error: inline assembly must have __locals() as first argument
--> $DIR/missing_locals.nil:4
4 | ___asm(
--> $DIR/missing_locals.nil:2
2 | ___asm(
^

View file

@ -1,5 +1,3 @@
//@check-pass
function a(a: I32) =
___asm(
__locals(),

View file

@ -1,8 +1,8 @@
error: mismatched immediate lengths, expected 1, got 2
--> $DIR/wrong_imm.nil:6
6 | "local.get 0 0",
--> $DIR/wrong_imm.nil:4
4 | "local.get 0 0",
^^^^^^^^^^^^^^^
error: mismatched immediate lengths, expected 1, got 0
--> $DIR/wrong_imm.nil:13
13 | "local.get",
--> $DIR/wrong_imm.nil:11
11 | "local.get",
^^^^^^^^^^^