summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-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.cpp16
-rw-r--r--test/wasm_backend/i64.load32_u.txt1
-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