Index: test/cctest/compiler/test-run-machops.cc |
diff --git a/test/cctest/compiler/test-run-machops.cc b/test/cctest/compiler/test-run-machops.cc |
index 4847a14f7fba43af1316d6cedd8f8776812c8eaa..483e9215b2b31eaa9ba27d78553ff44f61a3854c 100644 |
--- a/test/cctest/compiler/test-run-machops.cc |
+++ b/test/cctest/compiler/test-run-machops.cc |
@@ -5653,79 +5653,6 @@ TEST(RunCallCFunction8) { |
} |
#endif // USE_SIMULATOR |
-template <typename T> |
-void TestExternalReferenceFunction( |
- BufferedRawMachineAssemblerTester<int32_t>* m, ExternalReference ref, |
- T (*comparison)(T)) { |
- T parameter; |
- |
- Node* function = m->ExternalConstant(ref); |
- m->CallCFunction1(MachineType::Pointer(), MachineType::Pointer(), function, |
- m->PointerConstant(¶meter)); |
- m->Return(m->Int32Constant(4356)); |
- FOR_FLOAT64_INPUTS(i) { |
- parameter = *i; |
- m->Call(); |
- CheckDoubleEq(comparison(*i), parameter); |
- } |
-} |
- |
-TEST(RunCallExternalReferenceF32Trunc) { |
- BufferedRawMachineAssemblerTester<int32_t> m; |
- ExternalReference ref = |
- ExternalReference::f32_trunc_wrapper_function(m.isolate()); |
- TestExternalReferenceFunction<float>(&m, ref, truncf); |
-} |
- |
-TEST(RunCallExternalReferenceF32Floor) { |
- BufferedRawMachineAssemblerTester<int32_t> m; |
- ExternalReference ref = |
- ExternalReference::f32_floor_wrapper_function(m.isolate()); |
- TestExternalReferenceFunction<float>(&m, ref, floorf); |
-} |
- |
-TEST(RunCallExternalReferenceF32Ceil) { |
- BufferedRawMachineAssemblerTester<int32_t> m; |
- ExternalReference ref = |
- ExternalReference::f32_ceil_wrapper_function(m.isolate()); |
- TestExternalReferenceFunction<float>(&m, ref, ceilf); |
-} |
- |
-TEST(RunCallExternalReferenceF32RoundTiesEven) { |
- BufferedRawMachineAssemblerTester<int32_t> m; |
- ExternalReference ref = |
- ExternalReference::f32_nearest_int_wrapper_function(m.isolate()); |
- TestExternalReferenceFunction<float>(&m, ref, nearbyintf); |
-} |
- |
-TEST(RunCallExternalReferenceF64Trunc) { |
- BufferedRawMachineAssemblerTester<int32_t> m; |
- ExternalReference ref = |
- ExternalReference::f64_trunc_wrapper_function(m.isolate()); |
- TestExternalReferenceFunction<double>(&m, ref, trunc); |
-} |
- |
-TEST(RunCallExternalReferenceF64Floor) { |
- BufferedRawMachineAssemblerTester<int32_t> m; |
- ExternalReference ref = |
- ExternalReference::f64_floor_wrapper_function(m.isolate()); |
- TestExternalReferenceFunction<double>(&m, ref, floor); |
-} |
- |
-TEST(RunCallExternalReferenceF64Ceil) { |
- BufferedRawMachineAssemblerTester<int32_t> m; |
- ExternalReference ref = |
- ExternalReference::f64_ceil_wrapper_function(m.isolate()); |
- TestExternalReferenceFunction<double>(&m, ref, ceil); |
-} |
- |
-TEST(RunCallExternalReferenceF64RoundTiesEven) { |
- BufferedRawMachineAssemblerTester<int32_t> m; |
- ExternalReference ref = |
- ExternalReference::f64_nearest_int_wrapper_function(m.isolate()); |
- TestExternalReferenceFunction<double>(&m, ref, nearbyint); |
-} |
- |
#if V8_TARGET_ARCH_64_BIT |
// TODO(titzer): run int64 tests on all platforms when supported. |
TEST(RunCheckedLoadInt64) { |