Index: test/cctest/test-disasm-mips.cc |
diff --git a/test/cctest/test-disasm-mips.cc b/test/cctest/test-disasm-mips.cc |
index a8e13937b70165d9ded56c916f2b59a6067537c4..7e99fda537e15fb760f55abc6bb4d01346e06e03 100644 |
--- a/test/cctest/test-disasm-mips.cc |
+++ b/test/cctest/test-disasm-mips.cc |
@@ -1131,14 +1131,16 @@ TEST(MSA_BRANCH) { |
32767); |
COMPARE_MSA_BRANCH(bnz_d(w3, -32768), "47e38000 bnz.d w3, -32768", |
-32768); |
- COMPARE_MSA_BRANCH(bnz_v(w0, 0), "45e00000 bnz.v w0, 0", 0); |
+ COMPARE_MSA_BRANCH(bnz_v(w0, static_cast<int16_t>(0)), |
+ "45e00000 bnz.v w0, 0", 0); |
COMPARE_MSA_BRANCH(bz_b(w0, 1), "47000001 bz.b w0, 1", 1); |
COMPARE_MSA_BRANCH(bz_h(w1, -1), "4721ffff bz.h w1, -1", -1); |
COMPARE_MSA_BRANCH(bz_w(w2, 32767), "47427fff bz.w w2, 32767", |
32767); |
COMPARE_MSA_BRANCH(bz_d(w3, -32768), "47638000 bz.d w3, -32768", |
-32768); |
- COMPARE_MSA_BRANCH(bz_v(w0, 0), "45600000 bz.v w0, 0", 0); |
+ COMPARE_MSA_BRANCH(bz_v(w0, static_cast<int16_t>(0)), |
+ "45600000 bz.v w0, 0", 0); |
} |
VERIFY_RUN(); |
} |