Index: test/cctest/compiler/test-changes-lowering.cc |
diff --git a/test/cctest/compiler/test-changes-lowering.cc b/test/cctest/compiler/test-changes-lowering.cc |
index ddeabe479b8a001a057245bd29131082ebd98def..6a39cb03d6e4864777d8d3a138d62eb3de2eb403 100644 |
--- a/test/cctest/compiler/test-changes-lowering.cc |
+++ b/test/cctest/compiler/test-changes-lowering.cc |
@@ -143,113 +143,6 @@ class ChangesLoweringTester : public GraphBuilderTester<ReturnType> { |
}; |
-TEST(RunChangeTaggedToInt32) { |
- // Build and lower a graph by hand. |
- ChangesLoweringTester<int32_t> t(MachineType::AnyTagged()); |
- t.BuildAndLower(t.simplified()->ChangeTaggedToInt32()); |
- |
- FOR_INT32_INPUTS(i) { |
- int32_t input = *i; |
- |
- if (Smi::IsValid(input)) { |
- int32_t result = t.Call(Smi::FromInt(input)); |
- CHECK_EQ(input, result); |
- } |
- |
- { |
- Handle<Object> number = t.factory()->NewNumber(input); |
- int32_t result = t.Call(*number); |
- CHECK_EQ(input, result); |
- } |
- |
- { |
- Handle<HeapNumber> number = t.factory()->NewHeapNumber(input); |
- int32_t result = t.Call(*number); |
- CHECK_EQ(input, result); |
- } |
- } |
-} |
- |
- |
-TEST(RunChangeTaggedToUint32) { |
- // Build and lower a graph by hand. |
- ChangesLoweringTester<uint32_t> t(MachineType::AnyTagged()); |
- t.BuildAndLower(t.simplified()->ChangeTaggedToUint32()); |
- |
- FOR_UINT32_INPUTS(i) { |
- uint32_t input = *i; |
- |
- if (Smi::IsValid(input)) { |
- uint32_t result = t.Call(Smi::FromInt(input)); |
- CHECK_EQ(static_cast<int32_t>(input), static_cast<int32_t>(result)); |
- } |
- |
- { |
- Handle<Object> number = t.factory()->NewNumber(input); |
- uint32_t result = t.Call(*number); |
- CHECK_EQ(static_cast<int32_t>(input), static_cast<int32_t>(result)); |
- } |
- |
- { |
- Handle<HeapNumber> number = t.factory()->NewHeapNumber(input); |
- uint32_t result = t.Call(*number); |
- CHECK_EQ(static_cast<int32_t>(input), static_cast<int32_t>(result)); |
- } |
- } |
-} |
- |
- |
-TEST(RunChangeTaggedToFloat64) { |
- ChangesLoweringTester<int32_t> t(MachineType::AnyTagged()); |
- double result; |
- |
- t.BuildStoreAndLower(t.simplified()->ChangeTaggedToFloat64(), |
- t.machine()->Store(StoreRepresentation( |
- MachineRepresentation::kFloat64, kNoWriteBarrier)), |
- &result); |
- |
- { |
- FOR_INT32_INPUTS(i) { |
- int32_t input = *i; |
- |
- if (Smi::IsValid(input)) { |
- t.Call(Smi::FromInt(input)); |
- CHECK_EQ(input, static_cast<int32_t>(result)); |
- } |
- |
- { |
- Handle<Object> number = t.factory()->NewNumber(input); |
- t.Call(*number); |
- CHECK_EQ(input, static_cast<int32_t>(result)); |
- } |
- |
- { |
- Handle<HeapNumber> number = t.factory()->NewHeapNumber(input); |
- t.Call(*number); |
- CHECK_EQ(input, static_cast<int32_t>(result)); |
- } |
- } |
- } |
- |
- { |
- FOR_FLOAT64_INPUTS(i) { |
- double input = *i; |
- { |
- Handle<Object> number = t.factory()->NewNumber(input); |
- t.Call(*number); |
- CHECK_DOUBLE_EQ(input, result); |
- } |
- |
- { |
- Handle<HeapNumber> number = t.factory()->NewHeapNumber(input); |
- t.Call(*number); |
- CHECK_DOUBLE_EQ(input, result); |
- } |
- } |
- } |
-} |
- |
- |
TEST(RunChangeBoolToBit) { |
ChangesLoweringTester<int32_t> t(MachineType::AnyTagged()); |
t.BuildAndLower(t.simplified()->ChangeBoolToBit()); |