Index: test/unittests/compiler/typer-unittest.cc |
diff --git a/test/unittests/compiler/typer-unittest.cc b/test/unittests/compiler/typer-unittest.cc |
index 3ef436e5c86589cb698f438d62c475086bf2923c..c9b5c9db345b715f42b8f7b79bcb4c1615c2aecb 100644 |
--- a/test/unittests/compiler/typer-unittest.cc |
+++ b/test/unittests/compiler/typer-unittest.cc |
@@ -223,8 +223,8 @@ class TyperTest : public TypedGraphTest { |
namespace { |
-int32_t shift_left(int32_t x, int32_t y) { return x << y; } |
-int32_t shift_right(int32_t x, int32_t y) { return x >> y; } |
+int32_t shift_left(int32_t x, int32_t y) { return x << (y & 0x1f); } |
+int32_t shift_right(int32_t x, int32_t y) { return x >> (y & 0x1f); } |
int32_t bit_or(int32_t x, int32_t y) { return x | y; } |
int32_t bit_and(int32_t x, int32_t y) { return x & y; } |
int32_t bit_xor(int32_t x, int32_t y) { return x ^ y; } |