mirror of
https://github.com/Noratrieb/riverdelta.git
synced 2026-01-16 09:25:03 +01:00
inline assembly :3
This commit is contained in:
parent
3ab116d7f0
commit
ba5d41674c
17 changed files with 448 additions and 45 deletions
17
ui-tests/asm/wrong_imm.nil
Normal file
17
ui-tests/asm/wrong_imm.nil
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
//@check-pass
|
||||
|
||||
function a(a: I32) =
|
||||
___asm(
|
||||
__locals(),
|
||||
"local.get 0 0",
|
||||
"drop",
|
||||
);
|
||||
|
||||
function b(a: I32) =
|
||||
___asm(
|
||||
__locals(),
|
||||
"local.get",
|
||||
"drop",
|
||||
);
|
||||
|
||||
function main() = ;
|
||||
Loading…
Add table
Add a link
Reference in a new issue