Add fr450 support.
[deliverable/binutils-gdb.git] / sim / testsuite / sim / frv / fr400 / subss.cgs
CommitLineData
086419a8 1# frv testcase for subss $GRi,$GRj,$GRk
676a64f4 2# mach: fr405 fr450
086419a8
DB
3
4 .include "../testutils.inc"
5
6 start
7
8 .global sub
9sub_no_saturate:
10 set_gr_immed 1,gr7
11 set_gr_immed 2,gr8
12 subss gr8,gr7,gr8
13 test_gr_immed 1,gr8
14
15 set_gr_immed 2,gr7
16 set_gr_immed 1,gr8
17 subss gr8,gr7,gr8
18 test_gr_limmed 0xffff,0xffff,gr8
19
20sub_saturate_neg:
21 set_gr_immed 1,gr7
22 set_gr_limmed 0x8000,0x0000,gr8
23 subss gr8,gr7,gr8
24 test_gr_limmed 0x8000,0x0000,gr8
25
26 set_gr_limmed 0x7fff,0xffff,gr7
27 set_gr_limmed 0xffff,0xfff0,gr8
28 subss gr8,gr7,gr8
29 test_gr_limmed 0x8000,0x0000,gr8
30
31sub_saturate_pos:
32 set_gr_limmed 0xffff,0xffff,gr7
33 set_gr_limmed 0x7fff,0xffff,gr8
34 subss gr8,gr7,gr8
35 test_gr_limmed 0x7fff,0xffff,gr8
36
37 set_gr_immed 0x0010,gr8
38 set_gr_limmed 0x8000,0x0000,gr7
39 subss gr8,gr7,gr8
40 test_gr_limmed 0x7fff,0xffff,gr8
41
42
43 pass
This page took 0.043354 seconds and 4 git commands to generate.