This is the most pointless exercise I have seen in a long time, and I absolutely love it. :) Maybe we can use it to hide messages in binaries by encoding it as different kind of NOPshttps://twitter.com/wavedrom/status/1055277879309697024 …
-
-
Replying to @OlofKindgren @wavedrom
hm, I wonder if we can find a *useful* sub-ISA based on RVC that works on the "don'tcares" in these NOP implementations; e.g. if you advance PC by 2 (instead of 4) once, end up in 4B-strided compressed instruction sequences *embedded* in NOPs that still works as a sensible ISA.
1 reply 0 retweets 2 likes -
Replying to @dEnergy_dTime @OlofKindgren
Now we are in a *useful* mood again -- it should be a good test for the processor implementation passing long random NOP sequence and expect no architectural state change. Or even some way feeding it into a formal flow?
@oe1cxw ?1 reply 0 retweets 0 likes -
far as I can tell, for the ISA, if you go the formal route, proof that none of the instructions in isolation change state is enough to prove no sequence does. Of course, with pipelining and OoO exec, you'd need to look at complete pipeline states instead of indiv. instructions.
1 reply 0 retweets 1 like -
I was thinking the same thing. Just looked into riscv-formal yesterday and that should do the job, granted that the formal properties have it covered
1 reply 0 retweets 1 like -
Replying to @OlofKindgren @dEnergy_dTime and
I think it's quite a common bug for riscv-formal to find in fact - hint instructions which should behave as noops accidentally implemented as illegal instructions instead
1 reply 0 retweets 2 likes -
Simply search for HINT (in upper case letters) in the ISA spec. If any of those are interpreted as illegal instruction, that's a bug. But at the same time a current compiler will never generate them, which makes it difficult to find these bugs.
-
-
Replying to @oe1cxw @dEnergy_dTime and
Yes, looks like some of these NOPs are called HINTs in the latest spec.
1 reply 0 retweets 0 likes -
Replying to @wavedrom @dEnergy_dTime and
They are only HINTs if they are compressed instructions. I think you only looked at the uncompressed ISA for your NOP count exercise.
1 reply 0 retweets 1 like - Show replies
New conversation -
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.