mirror of
https://github.com/Noratrieb/riverdelta.git
synced 2026-01-14 08:25:02 +01:00
memcpy
This commit is contained in:
parent
ba5d41674c
commit
7fec1b1ce7
2 changed files with 18 additions and 4 deletions
|
|
@ -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",
|
||||
);
|
||||
|
|
|
|||
13
test.nil
13
test.nil
|
|
@ -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",
|
||||
)
|
||||
;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue