From a4967c271b106032c0264d3ec13c04c41481c3e4 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 27 Apr 2016 13:46:35 -0700 Subject: Add a testcase. --- test/wasm_backend/i64.load32_u.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/wasm_backend/i64.load32_u.cpp (limited to 'test/wasm_backend/i64.load32_u.cpp') 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 +#include + +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; +} -- cgit v1.2.3