| Index: test/cctest/compiler/test-simplified-lowering.cc
|
| diff --git a/test/cctest/compiler/test-simplified-lowering.cc b/test/cctest/compiler/test-simplified-lowering.cc
|
| index ed0abe05db48775e1f12a906dea9b0639e988053..cf2eab8a8b89e469eb2317336c2b4b05bae9292c 100644
|
| --- a/test/cctest/compiler/test-simplified-lowering.cc
|
| +++ b/test/cctest/compiler/test-simplified-lowering.cc
|
| @@ -1051,15 +1051,17 @@ TEST(LowerReferenceEqual_to_wordeq) {
|
| }
|
|
|
|
|
| -TEST(LowerStringOps_to_call_and_wordeq) {
|
| +TEST(LowerStringOps_to_call_and_compare) {
|
| TestingGraph t(Type::String(), Type::String());
|
| - IrOpcode::Value opcode =
|
| + IrOpcode::Value compare_eq =
|
| static_cast<IrOpcode::Value>(t.machine()->WordEqual()->opcode());
|
| - t.CheckLoweringBinop(opcode, t.simplified()->StringEqual());
|
| - if (false) { // TODO(titzer): lower StringOps to stub/runtime calls
|
| - t.CheckLoweringBinop(opcode, t.simplified()->StringLessThan());
|
| - t.CheckLoweringBinop(opcode, t.simplified()->StringLessThanOrEqual());
|
| - }
|
| + IrOpcode::Value compare_lt =
|
| + static_cast<IrOpcode::Value>(t.machine()->IntLessThan()->opcode());
|
| + IrOpcode::Value compare_le =
|
| + static_cast<IrOpcode::Value>(t.machine()->IntLessThanOrEqual()->opcode());
|
| + t.CheckLoweringBinop(compare_eq, t.simplified()->StringEqual());
|
| + t.CheckLoweringBinop(compare_lt, t.simplified()->StringLessThan());
|
| + t.CheckLoweringBinop(compare_le, t.simplified()->StringLessThanOrEqual());
|
| t.CheckLoweringBinop(IrOpcode::kCall, t.simplified()->StringAdd());
|
| }
|
|
|
|
|