diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-04-27 15:15:25 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-04-27 15:15:25 -0700 |
commit | 4a85f62e8a83117a081e9691d8830b6a7a876d1d (patch) | |
tree | a591bf3314a2d65b776d18c3c40308d84e1855dc /test/wasm_backend | |
parent | 3b2b18dc06da3895f0b54a0660ab561f2b305c92 (diff) | |
parent | 63271d39f8a1100a703adc50861e02caefc2a9d5 (diff) | |
download | binaryen-4a85f62e8a83117a081e9691d8830b6a7a876d1d.tar.gz binaryen-4a85f62e8a83117a081e9691d8830b6a7a876d1d.tar.bz2 binaryen-4a85f62e8a83117a081e9691d8830b6a7a876d1d.zip |
Merge pull request #406 from WebAssembly/i64.load32_u
Fix zero-extension in i64.load32_u.
Diffstat (limited to 'test/wasm_backend')
-rw-r--r-- | test/wasm_backend/globals_only.cpp (renamed from test/wasm_backend/globals.cpp) | 0 | ||||
-rw-r--r-- | test/wasm_backend/globals_only.txt (renamed from test/wasm_backend/globals.txt) | 0 | ||||
-rw-r--r-- | test/wasm_backend/hello_num_only.cpp (renamed from test/wasm_backend/hello_num.cpp) | 0 | ||||
-rw-r--r-- | test/wasm_backend/hello_num_only.txt (renamed from test/wasm_backend/hello_num.txt) | 0 | ||||
-rw-r--r-- | test/wasm_backend/hello_world_only.cpp (renamed from test/wasm_backend/hello_world.cpp) | 0 | ||||
-rw-r--r-- | test/wasm_backend/hello_world_only.txt (renamed from test/wasm_backend/hello_world.txt) | 0 | ||||
-rw-r--r-- | test/wasm_backend/i64.load32_u.cpp | 16 | ||||
-rw-r--r-- | test/wasm_backend/i64.load32_u.txt | 1 | ||||
-rw-r--r-- | test/wasm_backend/indirect_call_only.cpp (renamed from test/wasm_backend/indirect_call.cpp) | 0 | ||||
-rw-r--r-- | test/wasm_backend/indirect_call_only.txt (renamed from test/wasm_backend/indirect_call.txt) | 0 | ||||
-rw-r--r-- | test/wasm_backend/unaligned_only.cpp (renamed from test/wasm_backend/unaligned.cpp) | 0 | ||||
-rw-r--r-- | test/wasm_backend/unaligned_only.txt (renamed from test/wasm_backend/unaligned.txt) | 0 |
12 files changed, 17 insertions, 0 deletions
diff --git a/test/wasm_backend/globals.cpp b/test/wasm_backend/globals_only.cpp index 9a2f1bcc8..9a2f1bcc8 100644 --- a/test/wasm_backend/globals.cpp +++ b/test/wasm_backend/globals_only.cpp diff --git a/test/wasm_backend/globals.txt b/test/wasm_backend/globals_only.txt index 56248691d..56248691d 100644 --- a/test/wasm_backend/globals.txt +++ b/test/wasm_backend/globals_only.txt diff --git a/test/wasm_backend/hello_num.cpp b/test/wasm_backend/hello_num_only.cpp index d272f11c6..d272f11c6 100644 --- a/test/wasm_backend/hello_num.cpp +++ b/test/wasm_backend/hello_num_only.cpp diff --git a/test/wasm_backend/hello_num.txt b/test/wasm_backend/hello_num_only.txt index 9afd068a4..9afd068a4 100644 --- a/test/wasm_backend/hello_num.txt +++ b/test/wasm_backend/hello_num_only.txt diff --git a/test/wasm_backend/hello_world.cpp b/test/wasm_backend/hello_world_only.cpp index a4a6a025d..a4a6a025d 100644 --- a/test/wasm_backend/hello_world.cpp +++ b/test/wasm_backend/hello_world_only.cpp diff --git a/test/wasm_backend/hello_world.txt b/test/wasm_backend/hello_world_only.txt index 270c611ee..270c611ee 100644 --- a/test/wasm_backend/hello_world.txt +++ b/test/wasm_backend/hello_world_only.txt diff --git a/test/wasm_backend/i64.load32_u.cpp b/test/wasm_backend/i64.load32_u.cpp new file mode 100644 index 000000000..a53c93d86 --- /dev/null +++ b/test/wasm_backend/i64.load32_u.cpp @@ -0,0 +1,16 @@ +#include <stdint.h> +#include <stdio.h> + +volatile uint64_t x = 0x0101010101010101; +volatile uint32_t u = 0xfefefefe; + +int main(void) +{ + putchar('a' + (x >> 60)); + + x = u; // i64.load32_u + + putchar('A' + (x >> 60)); + putchar('\n'); + return 0; +} diff --git a/test/wasm_backend/i64.load32_u.txt b/test/wasm_backend/i64.load32_u.txt new file mode 100644 index 000000000..7ac5efc36 --- /dev/null +++ b/test/wasm_backend/i64.load32_u.txt @@ -0,0 +1 @@ +aA diff --git a/test/wasm_backend/indirect_call.cpp b/test/wasm_backend/indirect_call_only.cpp index ef52a4ad1..ef52a4ad1 100644 --- a/test/wasm_backend/indirect_call.cpp +++ b/test/wasm_backend/indirect_call_only.cpp diff --git a/test/wasm_backend/indirect_call.txt b/test/wasm_backend/indirect_call_only.txt index 8e10834ad..8e10834ad 100644 --- a/test/wasm_backend/indirect_call.txt +++ b/test/wasm_backend/indirect_call_only.txt diff --git a/test/wasm_backend/unaligned.cpp b/test/wasm_backend/unaligned_only.cpp index 75f8b419b..75f8b419b 100644 --- a/test/wasm_backend/unaligned.cpp +++ b/test/wasm_backend/unaligned_only.cpp diff --git a/test/wasm_backend/unaligned.txt b/test/wasm_backend/unaligned_only.txt index 15ca033cf..15ca033cf 100644 --- a/test/wasm_backend/unaligned.txt +++ b/test/wasm_backend/unaligned_only.txt |