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.
14 flags sat + c + v + ns + nz
17 # Similarly, if the result of the add is "positive", that means we
18 # went too negative. The result should be the most negative number.
25 flags sat + nc + v + s + nz
28 # Check that the SAT flag remains set until reset
34 flags sat + nc + nv + ns + nz
42 flags nsat + nc + nv + ns + nz
45 # Check that results exactly equal to min/max don't saturate
52 flags nsat + c + nv + ns + nz
61 flags nsat + nc + nv + s + nz