diff options
| author | Luuk de Gram <luuk@degram.dev> | 2022-03-16 21:06:02 +0100 |
|---|---|---|
| committer | Luuk de Gram <luuk@degram.dev> | 2022-03-17 20:41:23 +0100 |
| commit | eafdc5562f5053ecc193041e83d3661ef0744ebb (patch) | |
| tree | 2e12cfdc1b0348ba309b209ada085d5268a1862d /test/behavior/basic.zig | |
| parent | 291f5055f4b169e53414913e5ac077cd99ace978 (diff) | |
| download | zig-eafdc5562f5053ecc193041e83d3661ef0744ebb.tar.gz zig-eafdc5562f5053ecc193041e83d3661ef0744ebb.zip | |
wasm: Implement 'memcpy' instruction
This implements the `memcpy` instruction and also updates the inline memcpy calls
to make use of the same implementation. We use the fast-loop when the length is comptime known,
and use a runtime loop when the length is runtime known.
We also perform feature-dection to emit a simply wasm memory.copy instruction when the feature
'bulk-memory' is enabled. (off by default).
Diffstat (limited to 'test/behavior/basic.zig')
| -rw-r--r-- | test/behavior/basic.zig | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/test/behavior/basic.zig b/test/behavior/basic.zig index f22e93008c..bb3232c01c 100644 --- a/test/behavior/basic.zig +++ b/test/behavior/basic.zig @@ -340,7 +340,6 @@ fn f2(x: bool) []const u8 { test "memcpy and memset intrinsics" { if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; - if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO try testMemcpyMemset(); // TODO add comptime test coverage |
