Platform-dependent turbofan tests.
R=jarin@chromium.org BUG= Review URL: https://codereview.chromium.org/541343003 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@23736 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
5bad9e6a72
commit
09dccec9f4
@ -369,6 +369,8 @@ void Int32BinopInputShapeTester::RunRight(
|
||||
}
|
||||
|
||||
|
||||
#if V8_TURBOFAN_TARGET
|
||||
|
||||
TEST(ParametersEqual) {
|
||||
RawMachineAssemblerTester<int32_t> 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
|
||||
|
@ -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<IrOpcode::Value>(t.machine()->WordEqual()->opcode());
|
||||
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());
|
||||
if (Pipeline::SupportedTarget()) {
|
||||
// These tests need linkage for the calls.
|
||||
TestingGraph t(Type::String(), Type::String());
|
||||
IrOpcode::Value compare_eq =
|
||||
static_cast<IrOpcode::Value>(t.machine()->WordEqual()->opcode());
|
||||
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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user