@oe1cxw Sir I have a silly question. How does one implement bitmasks in rv32i/rv64i, given the bit instructions are in an extension? Surely you need bitmasks in order to implement eg 16-bit ints
-
-
Replying to @mcclure111 @oe1cxw
Bit wise and or and xor are part of the base arch.
2 replies 0 retweets 1 like -
Replying to @cr1901 @mcclure111
This. And re 16-bit ints specifically, usually they are handled by XLEN-16 bit left shift followed by right shift. The right shift is an arithmetic shift for signed and logical for unsigned. Bitmanip doesn't add anything here, just recommends to macro-op fuse pairs of shifts.
1 reply 0 retweets 0 likes -
Ok. So even without the bitmanip extension we have and, or, xor and four shifts? This is starting to sound a lot less spartan than I assumed it was
2 replies 0 retweets 1 like
Replying to @mcclure111 @cr1901
Yes. Three shifts in base: sll, srl, and sra Bitmanip adds more shifts: rol, ror, slo, sro, fsl, fsr
10:42 PM - 23 Aug 2019
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.