🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #647

Re: CISC are not "unreduced"

#647
From: BGB
Date: Wed, 11 Nov 2026 20:37
105 lines
5536 bytes
On 11/10/2026 11:08 AM, Stefan Monnier wrote:
> David Brown [2026-11-10 10:31:47] wrote:
>> It is also, I think, helpful to consider RISC as the "opposite" of
>> CISC - and Complex Instruction Set Computer cannot really be
>> interpreted as meaning anything other than that the instructions are
>> "complex".  By comparison, with RISC the /instructions/ are "reduced".
> 
> Indeed.  And one of the motivations behind the CISC evolution was the
> famed "semantic gap", which pushed towards rather fewer instructions
> that are more flexible, regular, and powerful.
> 

I can note that one goal I pushed for in my ISA design was to reduce 
executed instruction counts without raising the level of abstraction or 
having complex logic.

Though, this mostly ends up creating a pressure towards a larger GPR 
space and having the ability to encode larger immediate and displacement 
fields and similar for the cases where spills were common.


Also the LUI+ADDI scheme used by RISC-V, while very effective as a 
fallback case for a 32-bit machine, falls on its face for 64-bit 
machines. Also the design of the ISA starts to fall on its face the 
moment one has a struct or similar that is larger than 2K.

So:
   LUI+ADD+LW/SW => Sucks...
Well, and:
   SLL+ADD+LW/SW => Also sucks.
...

And people keep over-relying on optimizing designs for the SPEC 
benchmark, rather than across larger and more varied codebases (that 
would ideally not cost money to access).

Like, using a specific set of standardized benchmarks to drive feature 
and optimization decisions is equivalent to "teaching for the test" in 
education settings, which, while it does increase test-scores, is none 
the less an anti-pattern.


Better to find a range of codebases, and try to find codebases and 
scenarios for which things suck, and then try to make them "suck less". 
When the amount of "suck" can reduced, then typically everything gets 
better in a more indirect way.


But, what you don't necessarily want, is a bunch of overly specialized 
widgets that only happen in certain benchmarks...

Well, with some exceptions, like my ISA did end up with some amount of 
instructions that are a bit specialized towards graphics processing 
tasks and similar.



And, like, if one were doing a lot of work with JPEG or similar, a case 
could be made for things like YUV -> RGB converters and similar. 
Nevermind the specific version of YUV.

Some of my stuff used an approximation, say:
   Y=(4*G+3*R+B)/8; U=(B-Y)/2+128; V=(R-Y)/2+128;

Which while not an exact match for the standard color spaces, is "close 
enough". If mashing the result into RGB555 it may not really matter. 
Could be realized relatively affordably in a hardware implementation.

Well, and say:
   Y=(9*G+5*R+2*B)/16;
   ...
Would be more accurate, but slightly less cheap to convert back to RGB 
(even if, yes, these factors still allow the multiplications to be done 
via a LEA instruction or similar; it results in the reverse-side Green 
conversion no longer being a plain shift).

Say:
   G=(8*Y-3*R-B)>>2;
Vs:
   G=((16*Y-5*R-2*B)*57)>>9;


Note, although the standard math is a bit different, it more or less 
amounts to subtracting Y for forming U and V (not exactly, but doing it 
more accurately would make the conversion back to RGB more expensive).

As can be noted, within an RGB555 target space, the error from going 
mix/match with YCbCr / BT.601 is mostly small enough that (apart from 
high saturation colors) mostly falls below the level of RGB555 rounding 
error (and, with high saturation, still mostly +/- 1 for points within 
the gamut).


There is also RCT which I use a lot as well, but this is pros/cons (and 
if one goes mix and match between RCT and YCbCr, the visual result of a 
mismatch is a lot more obvious).

Well, and GDbDr, which while the cheapest option, is also the least good.


> The million instructions of AES don't feel very CISCy to me.
> 
> 
> === Stefan
Technical Details
Message-ID: <11d2jle$3cijo$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <11cpqih$acf5$1@dont-email.me> <11cr2g5$q796$2@dont-email.me> <2026Nov9.071302@mips.complang.tuwien.ac.at> <11cru1e$11qpi$1@dont-email.me> <2026Nov9.091404@mips.complang.tuwien.ac.at> <11cti0c$1lilf$4@dont-email.me> <11cuoa4$21279$1@dont-email.me> <jwvcxscsjsa.fsf-monnier+comp.arch@gnu.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: BGB <cr88192@gmail.com>
Newsgroups: comp.arch
Subject: Re: CISC are not "unreduced"
Date: Wed, 11 Nov 2026 14:37:02 -0600
Organization: A noiseless patient Spider
Lines: 105
Message-ID: <11d2jle$3cijo$1@dont-email.me>
References: <11cpqih$acf5$1@dont-email.me> <11cr2g5$q796$2@dont-email.me>
 <2026Nov9.071302@mips.complang.tuwien.ac.at> <11cru1e$11qpi$1@dont-email.me>
 <2026Nov9.091404@mips.complang.tuwien.ac.at> <11cti0c$1lilf$4@dont-email.me>
 <11cuoa4$21279$1@dont-email.me> <jwvcxscsjsa.fsf-monnier+comp.arch@gnu.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 11 Nov 2026 20:37:03 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="3558008"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18P20pEVcdFccVGg23EfGuRV9yJ2inh2l8="; posting-host="8da352e2486819299afcf87d88700199"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:ptM66l5jl5jZNXgO9/XUXFzVe5w= sha256:8/VKvbvl1LS/Q9mOnLh9mjLzRyAQjU9dxe8y5LR1xhw=
	sha1:EOKWaWFHLGCFe1td0ANS1MSQuho= sha256:gY/QaaEGew9kgniudvX38xSZ/OpJX5OZByOj2FHGmn4=
Content-Language: en-US
In-Reply-To: <jwvcxscsjsa.fsf-monnier+comp.arch@gnu.org>