This commit is contained in:
nora 2023-12-15 22:49:42 +01:00
parent ba5d41674c
commit 7fec1b1ce7
2 changed files with 18 additions and 4 deletions

View file

@ -1 +1,10 @@
mod alloc;
function memcpy(dst: I32, src: I32, n: I32) =
___asm(
__locals(),
"local.get 2",
"local.get 1",
"local.get 0",
"memory.copy",
);

View file

@ -1,6 +1,11 @@
//@check-pass
type A[T] = T;
function main() = ;
function aaaaaaaaaaa(a: A[I32]) = ;
function memcpy(dst: I32, src: I32, n: I32) =
___asm(
__locals(),
"local.get 2",
"local.get 1",
"local.get 0",
"memory.copy",
)
;