Index: test/cctest/compiler/test-js-typed-lowering.cc |
diff --git a/test/cctest/compiler/test-js-typed-lowering.cc b/test/cctest/compiler/test-js-typed-lowering.cc |
index 7c04cf3de7b70fad6d27f1329c86c956781281d8..ee69e1743b946e6dbf501eb5f6bb2f8695810d51 100644 |
--- a/test/cctest/compiler/test-js-typed-lowering.cc |
+++ b/test/cctest/compiler/test-js-typed-lowering.cc |
@@ -327,9 +327,13 @@ TEST(Int32BitwiseShifts) { |
CheckToI32(p0, r0, R.signedness[k]); |
- R.CheckPureBinop(IrOpcode::kWord32And, r1); |
- CheckToI32(p1, r1->InputAt(0), R.signedness[k + 1]); |
- R.CheckInt32Constant(0x1F, r1->InputAt(1)); |
+ if (r1->opcode() == IrOpcode::kWord32And) { |
+ R.CheckPureBinop(IrOpcode::kWord32And, r1); |
+ CheckToI32(p1, r1->InputAt(0), R.signedness[k + 1]); |
+ R.CheckInt32Constant(0x1F, r1->InputAt(1)); |
+ } else { |
+ CheckToI32(p1, r1, R.signedness[k]); |
+ } |
} |
} |
} |