Upload Tizen:Base source
[external/binutils.git] / gas / testsuite / gas / bfin / flow.s
1          .data
2 foodata:        .word 42
3         .text
4 footext:
5         .text
6         .global jump
7 jump:
8         jump(P5);
9         Jump (pc + p3);
10         jUMp (0);
11         JumP.l (-16777216);
12         jumP.L (0x00fffffe);
13         JUMP.s (4094);
14         JUMP.L (0X00FF0000);
15         jump (footext);
16
17         .text
18         .global ccjump
19 ccjump:
20         if cc jump (-1024);
21         IF CC JUMP (1022) (BP);
22         if !cc jump (0xffffFc00) (Bp);
23         if !cc jumP (0x0112);
24         if cC JuMp (footext);
25         if CC jUmP (footext) (bp);
26         if !cc jump (FOOTEXT) (bP);
27         if !Cc JUMP (FooText);
28
29         .text
30         .global call
31 call:
32         call (P3);
33         Call (PC+p2);
34         cALL (0xff000000);
35         CalL(0x00FFFFFe);
36         CAll call_test;
37
38
39         .text
40         .global return
41 return:
42         rts;
43         rTi;
44         rtX;
45         Rtn;
46         RTE;
47
48         .text
49         
50         .text
51         .global loop_lc0
52 loop_lc0:
53         loop first_loop lc0;
54         Loop_Begin first_loop;
55         R0 = [FP+-3604];
56         R1 = 9 (X);
57         R0 = [FP+-3604];
58         P0 = R0;
59         P2 = P0 << 2;
60         P2 = P2 + FP;
61         R0 = -1200 (X);
62         P1 = R0;
63         P2 = P2 + P1;
64         R0 = 0 (X);
65         [P2] = R0;
66         R0 = [FP+-3604];
67         R0 += 1;
68         [FP+-3604] = R0;
69         LOOP_END first_loop;
70
71         lOOP second_loop Lc0 = P4;
72         Loop_Begin second_loop;
73         NOP;
74         Loop_End second_loop;
75
76         LOOP third_loop lC0 = P1 >> 1;
77
78         Lsetup (4, 2046) Lc0;
79         LSETUP(30, 1024) LC0 = P5;
80         LSeTuP (30, 4) lc0 = p0 >> 1;
81
82
83         .global loop_lc1
84 loop_lc1:
85         loop my_loop lc1;
86         lOOP other_loop Lc1 = P4;
87         LOOP another_loop lC1 = P1 >> 1;
88
89         Lsetup (4, 2046) Lc1;
90         LSETUP (30, 1024) LC1 = P5;
91         LSeTuP (30, 4) lc1 = p0 >> 1;
92         Loop_Begin another_loop;
93         R0 = [FP+-3608];
94         P0 = R0;
95         P2 = P0 << 2;
96         P2 = P2 + FP;
97         R0 = -3600 (X);
98         P0 = R0;
99         P1 = P2 + P0;
100         R0 = [FP+-3608];
101         P0 = R0;
102         P2 = P0 << 2;
103         P2 = P2 + FP;
104         R0 = -1200 (X);
105         P0 = R0;
106         P2 = P2 + P0;
107         R0 = [P2];
108         [P1] = R0;
109         LOOP_END another_loop;