| 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 3c8d909e7ee3def3167a815e5ed07feff1315008..5606126e062d7f0e18cf7daa2e4dcf2d0d556d8a 100644
|
| --- a/test/cctest/compiler/test-run-machops.cc
|
| +++ b/test/cctest/compiler/test-run-machops.cc
|
| @@ -4275,4 +4275,17 @@ TEST(RunTruncateFloat64ToFloat32) {
|
| }
|
| }
|
|
|
| +
|
| +TEST(RunFloat32Constant) {
|
| + FOR_FLOAT32_INPUTS(i) {
|
| + float expected = *i;
|
| + float actual = *i;
|
| + RawMachineAssemblerTester<int32_t> m;
|
| + m.StoreToPointer(&actual, kMachFloat32, m.Float32Constant(expected));
|
| + m.Return(m.Int32Constant(0));
|
| + CHECK_EQ(0, m.Call());
|
| + CHECK_EQ(expected, actual);
|
| + }
|
| +}
|
| +
|
| #endif // V8_TURBOFAN_TARGET
|
|
|