v8/test/cctest/compiler
zhengxing.li 587ad6fcc0 X87: Change the test case for X87 RunRoundInt32ToFloat32.
The CL #33347 (https://codereview.chromium.org/1589363002) added the RunRoundInt32ToFloat32 test case and X87 failed at it.

 The reason is same as the CL #31808 (issue 1430943002, X87: Change the test case for X87 float operations), please refer: https://codereview.chromium.org/1430943002/.

 Here is the key comments from CL #31808
 Some new test cases use CheckFloatEq(...) and CheckDoubleEq(...) function for result check. When GCC compiling the CheckFloatEq() and CheckDoubleEq() function,
 those inlined functions has different behavior comparing with GCC ia32 build and x87 build.
 The major difference is sse float register still has single precision rounding semantic. While X87 register has no such rounding precsion semantic when directly use register value.
 The V8 turbofan JITTed has exactly same result in both X87 and IA32 port.

 For CHECK_EQ(a, b) function, if a and b are doubles, it will has similar behaviors like CheckFloatEq(...) and CheckDoubleEq(...) function when compiled by GCC and causes the test case
 fail.

 So we add the following sentence to do type case to keep the same precision for RunRoundInt32ToFloat32. Such as: volatile double expect = static_cast<float>(*i).

BUG=

Review URL: https://codereview.chromium.org/1649323002

Cr-Commit-Position: refs/heads/master@{#33630}
2016-02-01 08:27:56 +00:00
..
c-signature.h [turbofan] Make MachineType a pair of enums. 2015-12-10 09:03:53 +00:00
call-tester.h Implement the BufferedRawMachineAssemblerTester. 2015-10-30 21:32:49 +00:00
codegen-tester.cc [turbofan] Store nodes use only MachineRepresentation, not MachineType. 2015-12-11 15:34:16 +00:00
codegen-tester.h [turbofan] Add the StackSlot operator to turbofan. 2016-01-29 09:43:54 +00:00
function-tester.h Revert of Type Feedback Vector lives in the closure (patchset #2 id:20001 of https://codereview.chromium.org/1642613002/ ) 2016-01-27 15:05:38 +00:00
graph-builder-tester.h [turbofan] Make MachineType a pair of enums. 2015-12-10 09:03:53 +00:00
test-basic-block-profiler.cc [turbofan] Make MachineType a pair of enums. 2015-12-10 09:03:53 +00:00
test-branch-combine.cc [turbofan] Make MachineType a pair of enums. 2015-12-10 09:03:53 +00:00
test-changes-lowering.cc [turbofan] Store nodes use only MachineRepresentation, not MachineType. 2015-12-11 15:34:16 +00:00
test-code-stub-assembler.cc [compiler] Remove CodeStub from CompilationInfo 2016-01-20 15:18:14 +00:00
test-gap-resolver.cc [turbofan] Make MachineType a pair of enums. 2015-12-10 09:03:53 +00:00
test-graph-visualizer.cc [tubofan] Remove .dot output of --trace-turbo 2015-12-11 16:58:31 +00:00
test-instruction.cc Disable soon to be deprecated APIs per default for v8 2015-12-09 10:35:04 +00:00
test-js-constant-cache.cc Disable soon to be deprecated APIs per default for v8 2015-12-09 10:35:04 +00:00
test-js-context-specialization.cc Disable soon to be deprecated APIs per default for v8 2015-12-09 10:35:04 +00:00
test-js-typed-lowering.cc Disable soon to be deprecated APIs per default for v8 2015-12-09 10:35:04 +00:00
test-jump-threading.cc Preparing the terrain for frame elision. This change is necessary to 2016-01-28 16:15:12 +00:00
test-linkage.cc [compiler] Remove CodeStub from CompilationInfo 2016-01-20 15:18:14 +00:00
test-loop-analysis.cc [turbofan] Make MachineType a pair of enums. 2015-12-10 09:03:53 +00:00
test-loop-assignment-analysis.cc Disable soon to be deprecated APIs per default for v8 2015-12-09 10:35:04 +00:00
test-machine-operator-reducer.cc [turbofan] Store nodes use only MachineRepresentation, not MachineType. 2015-12-11 15:34:16 +00:00
test-multiple-return.cc [turbofan] Make MachineType a pair of enums. 2015-12-10 09:03:53 +00:00
test-node.cc Disable soon to be deprecated APIs per default for v8 2015-12-09 10:35:04 +00:00
test-operator.cc Disable soon to be deprecated APIs per default for v8 2015-12-09 10:35:04 +00:00
test-osr.cc [turbofan] Make MachineType a pair of enums. 2015-12-10 09:03:53 +00:00
test-pipeline.cc Disable soon to be deprecated APIs per default for v8 2015-12-09 10:35:04 +00:00
test-representation-change.cc [turbofan] Replace MachineSemantic with Type in simplified lowering. 2016-01-12 05:55:08 +00:00
test-run-bytecode-graph-builder.cc [Interpreter] Adds a placeholder merge node when visiting jumps. 2016-01-28 16:22:01 +00:00
test-run-deopt.cc Disable soon to be deprecated APIs per default for v8 2015-12-09 10:35:04 +00:00
test-run-inlining.cc Disable soon to be deprecated APIs per default for v8 2015-12-09 10:35:04 +00:00
test-run-intrinsics.cc [runtime] Remove two obsolete intrinsics. 2015-12-16 08:26:36 +00:00
test-run-jsbranches.cc Disable soon to be deprecated APIs per default for v8 2015-12-09 10:35:04 +00:00
test-run-jscalls.cc Revert of Type Feedback Vector lives in the closure (patchset #2 id:20001 of https://codereview.chromium.org/1642613002/ ) 2016-01-27 15:05:38 +00:00
test-run-jsexceptions.cc Disable soon to be deprecated APIs per default for v8 2015-12-09 10:35:04 +00:00
test-run-jsobjects.cc Basic TurboFan support for rest arguments. 2015-12-31 11:56:39 +00:00
test-run-jsops.cc Ship ES2015 sloppy-mode const semantics 2016-01-11 23:09:59 +00:00
test-run-machops.cc X87: Change the test case for X87 RunRoundInt32ToFloat32. 2016-02-01 08:27:56 +00:00
test-run-native-calls.cc [turbofan] Add the StackSlot operator to turbofan. 2016-01-29 09:43:54 +00:00
test-run-properties.cc Disable soon to be deprecated APIs per default for v8 2015-12-09 10:35:04 +00:00
test-run-stackcheck.cc Disable soon to be deprecated APIs per default for v8 2015-12-09 10:35:04 +00:00
test-run-stubs.cc [compiler] Remove CodeStub from CompilationInfo 2016-01-20 15:18:14 +00:00
test-run-variables.cc Ship ES2015 sloppy-mode const semantics 2016-01-11 23:09:59 +00:00
test-simplified-lowering.cc [turbofan] Avoid using the typer's types in representation inference for phis. 2016-01-13 15:35:36 +00:00
value-helper.h Revert of [turbofan] Implement rounding of floats on x64 and ia32 without sse4.1. (patchset #2 id:20001 of https://codereview.chromium.org/1584663007/ ) 2016-01-18 16:28:00 +00:00