This is the mail archive of the cgen@sources.redhat.com mailing list for the CGEN project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch][rfa]: Decoding (not-so) ambiguous insns in sid/sim



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]