4 .include "testutils.inc"
6 # If the result of the add is "negative", that means we went too
7 # positive. The result should be the most positive number.
13 flags sat + c + v + ns + nz
16 # Similarly, if the result of the add is "positive", that means we
17 # went too negative. The result should be the most negative number.
23 flags sat + nc + v + s + nz
26 # Check that the SAT flag remains set until reset
31 flags sat + nc + nv + ns + nz
38 flags nsat + nc + nv + ns + nz
41 # Check that results exactly equal to min/max don't saturate
47 flags nsat + c + nv + ns + nz
55 flags nsat + nc + nv + s + nz