Re: Instruction Tracing

Liste des GroupesRevenir à c arch 
Sujet : Re: Instruction Tracing
De : mitchalsup (at) *nospam* aol.com (MitchAlsup1)
Groupes : comp.arch
Date : 11. Aug 2024, 01:48:28
Autres entêtes
Organisation : Rocksolid Light
Message-ID : <6a8ce5d1518d754825f4160168c425c1@www.novabbs.org>
References : 1 2 3
User-Agent : Rocksolid Light
On Sat, 10 Aug 2024 21:34:47 +0000, BGB wrote:

>
My rough ranking of instruction probabilities (descending probability,
*):
   Load/Store (Constant Displacement, ~30%);
   Branch (~ 14% of ops);
   ALU, ADD/SUB/AND/OR (~ 13%);
   Load/Store (Register Indexed, ~10%);
   Compare and Test (~ 6%);
   Integer Shift (~ 4%);
   Register Move (~ 3%);
   Sign/Zero Extension (~ 3%);
   ALU, XOR (~ 2%);
   Multiply (~ 2%);
   ...
>
*: Crude estimate based on categorizing the dynamic execution
probabilities (which are per-instruction rather than by category).
>
Meanwhile, DIV and friends are generally closer to 0.05% or so...
   You can leave them out and hardly anyone will notice.
The literature from the CRAY-1 era indicated big number crunching
applications use FFDIV about ¼ that of FMUL, IDIV not so much.
>
For the most part, something like RISC-V makes sense, except that
omitting Indexed Load/Store is basically akin to shooting oneself in the
foot (and does result in a significant increase in the amount of Shift
and ADD instructions used).
>
>
With RISC-V, one may see ~ 25% Load/Store followed by ~ 20% ADD and 15%
Shift, ...
If you add the number of indexed LD/STs in your list above with shifts,
you can find all those missing RISC-V shift instructions.

Some of this is because ADD and Shift end up over-represented by their
need to be used in compound operations (indexed load/store and sign/zero
extension).
RISC-V 16-bit smash::
          SLI     Rt,Rs,48
          SRA     Rt,Rt,48
My 66000
          SLA     Rt,Rs,<16:0>
Where RISC-V uses the shifter at 48-bits twice, My 66000 only uses
the masking part of the shifter.
<snip>
>
Meanwhile, I am once again reminded of an annoying edge case bug in my
Verilog implementation:
If a TLB Miss happens on an inter-ISA branch, it can leave the CPU core
in an inconsistent state.
Woops...

Date Sujet#  Auteur
10 Aug 24 * Instruction Tracing31Lawrence D'Oliveiro
10 Aug 24 +* Re: Instruction Tracing29Anton Ertl
10 Aug 24 i+- Re: Instruction Tracing1MitchAlsup1
10 Aug 24 i+* Re: Instruction Tracing8John Dallman
10 Aug 24 ii+- Re: Instruction Tracing1MitchAlsup1
11 Aug 24 ii`* Re: Instruction Tracing6BGB
11 Aug 24 ii +* Re: Instruction Tracing4Lawrence D'Oliveiro
11 Aug 24 ii i`* Re: Instruction Tracing3BGB
11 Aug 24 ii i `* Re: Instruction Tracing2George Neuner
11 Aug 24 ii i  `- Re: Instruction Tracing1BGB
12 Aug 24 ii `- Re: Instruction Tracing1Michael S
10 Aug 24 i+* Re: Instruction Tracing3BGB
11 Aug 24 ii`* Re: Instruction Tracing2MitchAlsup1
11 Aug 24 ii `- Re: Instruction Tracing1BGB
11 Aug 24 i`* Re: Instruction Tracing16John Levine
11 Aug 24 i +* Re: Instruction Tracing3OrangeFish
11 Aug 24 i i`* Re: Instruction Tracing2John Levine
12 Aug 24 i i `- Re: Instruction Tracing1Lynn Wheeler
11 Aug 24 i `* Re: Instruction Tracing12Anton Ertl
11 Aug 24 i  +* Re: Instruction Tracing2MitchAlsup1
12 Aug 24 i  i`- Re: Instruction Tracing1Lawrence D'Oliveiro
12 Aug 24 i  `* Re: Instruction Tracing9Lawrence D'Oliveiro
12 Aug 24 i   +* Re: Instruction Tracing2Terje Mathisen
12 Aug 24 i   i`- Re: Instruction Tracing1Anton Ertl
12 Aug 24 i   `* Re: Instruction Tracing6Anton Ertl
12 Aug 24 i    `* Re: Instruction Tracing5Lawrence D'Oliveiro
12 Aug 24 i     `* Re: Instruction Tracing4Michael S
12 Aug 24 i      `* Re: Instruction Tracing3Lawrence D'Oliveiro
12 Aug 24 i       `* Re: Instruction Tracing2Michael S
12 Aug 24 i        `- Re: Instruction Tracing1MitchAlsup1
10 Aug 24 `- Re: Instruction Tracing1MitchAlsup1

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal