Update release-README after completing the 2.43 release.
[binutils-gdb.git] / sim / testsuite / v850 / satsub.cgs
blobb7085e72c3ad775c3de22e4eafe88f562de84327
1 # v850 satsub
2 # mach: all
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.
9         noflags
10         seti    0x90000000, r1
11         seti    0x70000000, r2
12         satsub  r1, r2
14         flags   sat + c + v + ns + nz
15         reg     r2, 0x7fffffff
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.
20         noflags
21         seti    0x70000000, r1
22         seti    0x90000000, r2
23         satsub  r1, r2
25         flags   sat + nc + v + s + nz
26         reg     r2, 0x80000000
28 # Check that the SAT flag remains set until reset
30         seti    1, r1
31         seti    2, r2
32         satsub  r1,r2
34         flags   sat + nc + nv + ns + nz
35         reg     r2, 1
37         noflags
38         seti    1, r1
39         seti    2, r2
40         satsub  r1,r2
42         flags   nsat + nc + nv + ns + nz
43         reg     r2, 1
45 # Check that results exactly equal to min/max don't saturate
47         noflags
48         seti    0x90000000, r1
49         seti    0x0fffffff, r2
50         satsub  r1,r2
52         flags   nsat + c + nv + ns + nz
53         reg     r2, 0x7fffffff
56         noflags
57         seti    0x70000000, r1
58         seti    0xf0000000, r2
59         satsub  r1,r2
61         flags   nsat + nc + nv + s + nz
62         reg     r2, 0x80000000
65         pass