Closed Bug 559971 Opened 15 years ago Closed 15 years ago

Rename LOpcode enums in NativeARM.cpp

Categories

(Core Graveyard :: Nanojit, defect)

ARM
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Future

People

(Reporter: edwsmith, Unassigned)

References

Details

(Whiteboard: fixed-in-nanojit, fixed-in-tamarin, fixed-in-tracemonkey)

Attachments

(1 file)

No description provided.
Blocks: 504506
Assignee: nobody → edwsmith
Target Milestone: --- → Future
Attachment #443612 - Flags: review?(nnethercote)
Attachment #443612 - Flags: feedback?(Jacob.Bramley)
Comment on attachment 443612 [details] [diff] [review] Automatic rename plus manual alignment fixes. >- case LIR_fadd: FADDD(rr,ra,rb); break; >- case LIR_fsub: FSUBD(rr,ra,rb); break; >- case LIR_fmul: FMULD(rr,ra,rb); break; >- case LIR_fdiv: FDIVD(rr,ra,rb); break; >+ case LIR_addd: FADDD(rr,ra,rb); break; >+ case LIR_subd: FSUBD(rr,ra,rb); break; >+ case LIR_muld: FMULD(rr,ra,rb); break; >+ case LIR_divd: FDIVD(rr,ra,rb); break; FADDD et al are no longer appropriate. I don't know why the 'D' suffix was already there... would ADDD et al suffice? r=me with that fixed, the rest looks fine.
Attachment #443612 - Flags: review?(nnethercote) → review+
I believe those are the correct names for the ARM instructions. there's FADD for float and FADDD for double.
(In reply to comment #3) > I believe those are the correct names for the ARM instructions. there's FADD > for float and FADDD for double. Oh, ok. Leave them as is then!
Comment on attachment 443612 [details] [diff] [review] Automatic rename plus manual alignment fixes. Looks sensible to me. The double-precision instructions do indeed get a "D" suffix, though we tend to deal in UAL/ARMv7 notation where possible, which would be "VADD.F64". I didn't see any value in changing all the macro names so the old-style names persist!
Attachment #443612 - Flags: feedback?(Jacob.Bramley) → feedback+
Assignee: edwsmith → nobody
Whiteboard: fixed-in-nanojit
Whiteboard: fixed-in-nanojit → fixed-in-nanojit, fixed-in-tamarin
Whiteboard: fixed-in-nanojit, fixed-in-tamarin → fixed-in-nanojit, fixed-in-tamarin, fixed-in-tracemonkey
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: