[patch][rfa]: Decoding (not-so) ambiguous insns in sid/sim
Frank Ch. Eigler
fche@redhat.com
Wed Jan 2 20:34:00 GMT 2002
brolley wrote:
> [...] This situation occurs when one insn is a specialization of
> another. This patch adds the same capability to the decoders used by
> the cgen-based simulators in the sim and sid source trees. [...]
Thanks for this authoritative and exhaustive study of the issue. It
makes fine sense.
> [...]
> (list->vector
> (map (lambda (p0 p1)
> (logit 4 p0 "/" p1 " ")
> ! ; (sqrt (+ p0 p1 (* p0 p1))) ; funny function - nice curve
> ! (sqrt (* p0 p1))) ; geometric mean
> (vector->list 0-population) (vector->list 1-population))))
By the way, have you tried the "funny function" above? It would have
the property of separating the 0/0 and 0/N cases like your new
ordering function does, and is monotonic in p0 & p1, so it should not
change the relative order of existing decoders.
- FChE
More information about the Cgen
mailing list