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 + nc + v + ns + nz
21 flags sat + nc + v + ns + nz
24 # Similarly, if the result of the add is "positive", that means we
25 # went too negative. The result should be the most negative number.
32 flags sat + c + v + s + nz
39 flags sat + c + v + s + nz
42 # Check that the SAT flag remains set until reset
48 flags sat + nc + nv + ns + nz
56 flags nsat + nc + nv + ns + nz
59 # Check that results exactly equal to min/max don't saturate
66 flags nsat + nc + nv + ns + nz
75 flags nsat + c + nv + s + nz