Comment by Findecanor

Comment by Findecanor 16 hours ago

2 replies

Not necessarily lower density. On ARM you would often need cmp and csel, which are two instructions, eight bytes.

RISC-V has cmp-and-branch in a single instruction, which with c.mv normally makes six bytes. If the cmp-and-branch instruction tests one of x8..x15 against zero then that could also be a compressed instruction: making four bytes in total.

sylware 2 hours ago

Compressed instruction only matter for niche (and even in such niche, nowadays, I guess it is very probably very questionable), here you would not use compressed instructions, just the right instruction pattern for fusion, like div/rem.