diff --git a/test/cctest/compiler/codegen-tester.cc b/test/cctest/compiler/codegen-tester.cc index 8a7b902741..b1874f5526 100644 --- a/test/cctest/compiler/codegen-tester.cc +++ b/test/cctest/compiler/codegen-tester.cc @@ -369,6 +369,8 @@ void Int32BinopInputShapeTester::RunRight( } +#if V8_TURBOFAN_TARGET + TEST(ParametersEqual) { RawMachineAssemblerTester m(kMachInt32, kMachInt32); Node* p1 = m.Parameter(1); @@ -380,8 +382,6 @@ TEST(ParametersEqual) { } -#if V8_TURBOFAN_TARGET - void RunSmiConstant(int32_t v) { // TODO(dcarney): on x64 Smis are generated with the SmiConstantRegister #if !V8_TARGET_ARCH_X64 diff --git a/test/cctest/compiler/test-simplified-lowering.cc b/test/cctest/compiler/test-simplified-lowering.cc index dc32a2ac15..ab0e76f9fb 100644 --- a/test/cctest/compiler/test-simplified-lowering.cc +++ b/test/cctest/compiler/test-simplified-lowering.cc @@ -1054,17 +1054,20 @@ TEST(LowerReferenceEqual_to_wordeq) { TEST(LowerStringOps_to_call_and_compare) { - TestingGraph t(Type::String(), Type::String()); - IrOpcode::Value compare_eq = - static_cast(t.machine()->WordEqual()->opcode()); - IrOpcode::Value compare_lt = - static_cast(t.machine()->IntLessThan()->opcode()); - IrOpcode::Value compare_le = - static_cast(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()); + if (Pipeline::SupportedTarget()) { + // These tests need linkage for the calls. + TestingGraph t(Type::String(), Type::String()); + IrOpcode::Value compare_eq = + static_cast(t.machine()->WordEqual()->opcode()); + IrOpcode::Value compare_lt = + static_cast(t.machine()->IntLessThan()->opcode()); + IrOpcode::Value compare_le = static_cast( + 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()); + } }