Closed Bug 2041055 Opened 5 months ago Closed 5 months ago

Prefer SignExtendWord instead of ExtractBits and use more pseudo-instructions

Categories

(Core :: JavaScript Engine: JIT, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
153 Branch
Tracking Status
firefox153 --- fixed

People

(Reporter: anba, Assigned: anba)

References

(Blocks 1 open bug)

Details

Attachments

(7 external files)

No description provided.

This matches ARM64 and requires only a single instruction.

This matches ARM32 and only requires a single instruction. Also update the
Address and BaseIndex overloads for consistency.

Similar to part 2.

And rename rt to rd to match the normal conventions for riscv code.

Also removes an unused ExtractBits overload.

Move nop to AssemblerRISCVI to allow using in that class.

mv(rd, rs) is the pseudo-instruction for addi(rd, rs, 0).

Prefer the pseudo-instructions because they make the code more readable. Also
use the NegateBoolean helper in more cases.

QA Whiteboard: [qa-triage-done-c154/b153]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: