Liste des Groupes | Revenir à c arch |
On 2025-03-07 12:34 p.m., MitchAlsup1 wrote:Both SR and SL have both sign control and masking.On Fri, 7 Mar 2025 11:08:56 +0000, BGB wrote:>
>On 3/6/2025 10:09 PM, Lawrence D'Oliveiro wrote:---------------->>
So, writing things like:
y[55:48]=x[19:12];
2 instructions in My 66000. One extract, one insert.
Ibid for Q+. The logic for an extract and insert as one operation might
add to the timing. Extract, sign/zero extend and copy back. Fields may
be different sizes.
>>>>>
And:
j=x[19:12];
Also a single instruction, or 2 or 3 in the fallback case (encoded as a
shift and mask).
1 instruction--extract (SLL or SLA)
Q+ has EXT/EXTU which is basically a SRL or SRA with mask applied
afterwards. PowerPC has a rotate-left-and-mask instruction. In my
opinion it makes more sense for extracts to be shifting right.
Les messages affichés proviennent d'usenet.