Closed Bug 1282411 Opened 8 years ago Closed 8 years ago

Make ARM simulator enable SDIV and UDIV by default

Categories

(Core :: JavaScript Engine: JIT, defect)

ARM
All
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla50
Tracking Status
firefox50 --- fixed

People

(Reporter: lth, Assigned: lth)

Details

Attachments

(1 file)

Currently the simulator enables many modern features (VFPv3, VFPv4, and NEON) but not integer division (SDIV and UDIV).  In practice, most new ARM chips on mobile platforms will have those instructions, and we should enable them for better test coverage.

From a practical point of view, this means that simulator runs without ARMHWCAP=... will have as a default the set armv7,vfp,vfpv3,vfpv4,neon,idiva: the last flag is new.
Attachment #8765462 - Flags: review?(jdemooij)
Comment on attachment 8765462 [details] [diff] [review]
bug1282411-divide-and-conquer.patch

Review of attachment 8765462 [details] [diff] [review]:
-----------------------------------------------------------------

Do the fuzzers still have ways to disable this, using the shell function or something?
Attachment #8765462 - Flags: review?(jdemooij) → review+
(In reply to Jan de Mooij [:jandem] from comment #2)
> 
> Do the fuzzers still have ways to disable this, using the shell function or
> something?

Unless I'm misreading our code, if ARMHWCAP is present at all it must define all flags it wants to set, not flags it wants in addition to a default.  So yes, fuzzers should be OK with this.
https://hg.mozilla.org/mozilla-central/rev/a8fdc81e834e
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla50
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: