Standard seems to be undefined behaviour for overflow but I vaguely remember checking once with gcc it was saturated but not for other. On Wed, 5 Dec 2018 10:46:59 +0000 andy pugh <[email protected]> wrote:
> I have managed to break the mux test by fixing a bug :-) > > The two values sent to mux-gen.07 were 1e-11 and 5e9. One is almost > zero, and the other is above the max for a u32. The out-of-range case > was tested for, and was clipped. But the code to set the value to an > in-range value was missing from the component. > > I see that the "expected" output from mux-gen.10 never changes > (signed-to-bit). It might make sense to pass that a zero as one of the > inputs to exercise it a little better? > > Anyway, I will fix the test to check for actual correct behaviour tonight. > > -- > atp > "A motorcycle is a bicycle with a pandemonium attachment and is > designed for the especial use of mechanical geniuses, daredevils and > lunatics." > — George Fitch, Atlanta Constitution Newspaper, 1916 > > > _______________________________________________ > Emc-developers mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/emc-developers _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
