Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable truncated floating point feature on ARM
https://bugs.webkit.org/show_bug.cgi?id=44233 Reviewed by Gavin Barraclough. Enable truncated floating point feature with the help of VCVTR.S32.F64 instruction. If VCVTR.S32.F64 can't fit the result into a 32-bit integer/register, it saturates at INT_MAX or INT_MIN. Testing this looks quicker than testing FPSCR for exception. Inspired by Jacob Bramley's patch from JaegerMonkey * assembler/ARMAssembler.h: (JSC::ARMAssembler::): (JSC::ARMAssembler::cmn_r): (JSC::ARMAssembler::vcvtr_s32_f64_r): * assembler/MacroAssemblerARM.h: (JSC::MacroAssemblerARM::supportsFloatingPointTruncate): (JSC::MacroAssemblerARM::branchTruncateDoubleToInt32): Canonical link: https://commits.webkit.org/56772@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@65993 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
3 changed files
with
44 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters