News for hackers. Stuff that matters.
Re:Bootstrapping GCC in RISC-V: Milestone: MesCC builds Tiny... by benj111 on Tuesday October 31, 2023 @04:54AM (#38081896)
A shift is basically a rotate and mask. If wonder if they came from a machine where there was no shift instruction?
Re:Bootstrapping GCC in RISC-V: Milestone: MesCC builds Tiny... by unwind on Tuesday October 31, 2023 @09:07AM (#38084240)
Not for the signed ("arithmetic") case when you need to duplicate the sign bit into the topmost bit. You can't replicate that with a rotate, it's a distinct operation.
Re:Bootstrapping GCC in RISC-V: Milestone: MesCC builds Tiny... by benj111 on Tuesday October 31, 2023 @11:32AM (#38086410)
No but if this hypothetical instruction set doesn't even include shifts, it wouldn't be surprising if it missed other instructions.