diff options
author | Heejin Ahn <aheejin@gmail.com> | 2019-11-26 18:05:09 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-26 18:05:09 -0800 |
commit | d15fe879834b0c58d2d4d8526cb428990f7b50a7 (patch) | |
tree | e7e05d655cdad2cb0f56b91f723207e430a02e47 /test/wasm_backend/unaligned_only.cpp | |
parent | 5c81d48c70e62e11d9a8fd0fd8231fac10c3bf29 (diff) | |
download | binaryen-d15fe879834b0c58d2d4d8526cb428990f7b50a7.tar.gz binaryen-d15fe879834b0c58d2d4d8526cb428990f7b50a7.tar.bz2 binaryen-d15fe879834b0c58d2d4d8526cb428990f7b50a7.zip |
Remove vanilla tests (#2482)
These have not been used in years and seem outdated.
Diffstat (limited to 'test/wasm_backend/unaligned_only.cpp')
-rw-r--r-- | test/wasm_backend/unaligned_only.cpp | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/test/wasm_backend/unaligned_only.cpp b/test/wasm_backend/unaligned_only.cpp deleted file mode 100644 index 75f8b419b..000000000 --- a/test/wasm_backend/unaligned_only.cpp +++ /dev/null @@ -1,70 +0,0 @@ -#include <stdint.h> -#include <emscripten.h> - -void print(int v) { - int *x = (int*)8; - *x = v; - EM_ASM({ - Module.print("print: " + HEAP32[8>>2]); - }); -} - -char buffer[8]; - -int main() { - { - volatile int16_t* x; - x = (int16_t*)&buffer[0]; - *x = 0x1234; - print(*x); - x = (int16_t*)&buffer[1]; - *x = 0x2345; - print(*x); - } - { - volatile int32_t* x; - x = (int32_t*)&buffer[0]; - *x = 0x12345678; - print(*x); - x = (int32_t*)&buffer[1]; - *x = 0x23456789; - print(*x); - x = (int32_t*)&buffer[2]; - *x = 0x3456789a; - print(*x); - x = (int32_t*)&buffer[3]; - *x = 0x456789ab; - print(*x); - } - { - volatile float* x; - x = (float*)&buffer[0]; - *x = -0x12345678; - print(*x); - x = (float*)&buffer[1]; - *x = -0x12345678; - print(*x); - x = (float*)&buffer[2]; - *x = -0x12345678; - print(*x); - x = (float*)&buffer[3]; - *x = -0x12345678; - print(*x); - } - { - volatile double* x; - x = (double*)&buffer[0]; - *x = -1; - print(*x); - x = (double*)&buffer[1]; - *x = -2; - print(*x); - x = (double*)&buffer[2]; - *x = -3; - print(*x); - x = (double*)&buffer[3]; - *x = -4; - print(*x); - } -} - |