Index: test/cctest/compiler/test-representation-change.cc |
diff --git a/test/cctest/compiler/test-representation-change.cc b/test/cctest/compiler/test-representation-change.cc |
index 1d5c00a3244a8070f90081e86b0e33fe36da84c1..8d70ca23d9e096cda0007d7e5720f897459dfa73 100644 |
--- a/test/cctest/compiler/test-representation-change.cc |
+++ b/test/cctest/compiler/test-representation-change.cc |
@@ -644,7 +644,23 @@ |
TEST(TypeErrors) { |
RepresentationChangerTester r; |
+ // Wordish cannot be implicitly converted to/from comparison conditions. |
+ r.CheckTypeError(MachineRepresentation::kWord8, Type::None(), |
+ MachineRepresentation::kBit); |
+ r.CheckTypeError(MachineRepresentation::kWord16, Type::None(), |
+ MachineRepresentation::kBit); |
+ r.CheckTypeError(MachineRepresentation::kWord32, Type::None(), |
+ MachineRepresentation::kBit); |
+ r.CheckTypeError(MachineRepresentation::kWord64, Type::None(), |
+ MachineRepresentation::kBit); |
+ |
// Floats cannot be implicitly converted to/from comparison conditions. |
+ r.CheckTypeError(MachineRepresentation::kFloat64, Type::None(), |
+ MachineRepresentation::kBit); |
+ |
+ // Floats cannot be implicitly converted to/from comparison conditions. |
+ r.CheckTypeError(MachineRepresentation::kFloat32, Type::None(), |
+ MachineRepresentation::kBit); |
r.CheckTypeError(MachineRepresentation::kBit, Type::None(), |
MachineRepresentation::kFloat32); |
r.CheckTypeError(MachineRepresentation::kBit, Type::Boolean(), |