This commit was generated by cvs2svn to track changes on a CVS vendor
[external/binutils.git] / gas / testsuite / gas / ppc / booke.s
1 # Motorola PowerPC BookE tests
2 #as: -mbooke32
3         .section ".text"
4 start:
5         bce     1, 5, branch_target_1
6         bcel    2, 6, branch_target_2
7         bcea    3, 7, branch_target_3
8         bcela   4, 8, branch_target_4
9         bclre   5, 9
10         bclrel  5, 10
11         bcctre  8, 11
12         bcctrel 8, 12
13         be      branch_target_5
14         bel     branch_target_6
15         bea     branch_target_7
16         bela    branch_target_8
17
18 branch_target_1:
19         lbze    8, 8(9)
20         lbzue   12, 4(15)
21         lbzuxe  4, 6, 8
22         lbzxe   3, 5, 7
23
24 branch_target_2:
25         lde     5, 400(6)
26         ldue    6, 452(7)
27         ldxe    7, 8, 9
28         lduxe   10, 11, 12
29
30 branch_target_3:
31         lfde    12, 128(1)
32         lfdue   1, 16(5)
33         lfdxe   5, 1, 3
34         lfduxe  6, 2, 4
35         lfse    8, 48(9)
36         lfsue   9, 68(10)
37         lfsuxe  10, 4, 8
38         lfsxe   9, 3, 7
39
40 branch_target_4:
41         lhae    10, 50(5)
42         lhaue   1, 5(3) 
43         lhauxe  5, 1, 3
44         lhaxe   29, 30, 31
45         lhbrxe  1, 2, 3
46         lhze    4, 18(3)
47         lhzue   6, 20(9)
48         lhzuxe  5, 7, 9
49         lhzxe   9, 7, 5
50
51 branch_target_5:
52         lwarxe  10, 15, 20
53         lwbrxe  5, 10, 18
54         lwze    28, 4(29)
55         lwzue   8, 40(10)
56         lwzuxe  3, 6, 9
57         lwzxe   30, 29, 28
58
59 branch_target_6:
60         dcbae   6, 7
61         dcbfe   8, 9
62         dcbie   10, 11
63         dcbste  8, 30
64         dcbte   6, 3, 1
65         dcbtste 5, 4, 2
66         dcbze   15, 14
67         icbie   3, 4
68         icbt    5, 8, 9 
69         icbte   6, 10, 15
70         mfapidi 5, 6
71         tlbivax 7, 8
72         tlbivaxe 9, 10  
73         tlbsx   11, 12
74         tlbsxe  13, 14
75         tlbwe
76         tlbwe   0,0,0
77         tlbwe   1,1,1
78
79 branch_target_7:
80         adde64  1, 2, 3
81         adde64o 4, 5, 6
82         addme64 7, 8
83         addme64o 9, 10
84         addze64 11, 12
85         addze64o 13, 14
86         mcrxr64 5
87         subfe64 15, 16, 17
88         subfe64o 18, 19, 20
89         subfme64 21, 22
90         subfme64o 23, 24
91         subfze64 25, 26
92         subfze64o 27, 28
93
94 branch_target_8:
95         stbe    1, 50(2)
96         stbue   3, 40(4)
97         stbuxe  5, 6, 7
98         stbxe   8, 9, 10
99         stdcxe. 11, 12, 13
100         stde    14, 28(15)
101         stdue   16, 20(17)
102         stdxe   18, 19, 20
103         stduxe  21, 22, 23
104         stfde   1, 12(24)
105         stfdue  2, 0(25)
106         stfdxe  3, 26, 27
107         stfduxe 4, 28, 29
108         stfiwxe 5, 30, 31
109         stfse   6, 24(30)
110         stfsue  7, 20(29)
111         stfsxe  8, 28, 27
112         stfsuxe 9, 26, 25
113         sthbrxe 24, 23, 22
114         sthe    21, 30(20)
115         sthue   19, 40(18)
116         sthuxe  17, 16, 15
117         sthxe   14, 13, 12
118         stwbrxe 11, 10, 9
119         stwcxe. 8, 7, 6
120         stwe    5, 50(4)
121         stwue   3, 40(2)
122         stwuxe  1, 2, 3
123         stwxe   4, 5, 6
124
125         rfci
126         wrtee   3
127         wrteei  1
128         mfdcrx  4, 5
129         mfdcr   5, 234
130         mtdcrx  6, 7
131         mtdcr   432, 8
132         msync
133         dcba    9, 10
134         mbar
135         mbar    0
136         mbar    1
137
138         mfsprg 0, 2
139         mfsprg2 0
140         mtsprg 2, 0
141         mtsprg2 0
142         mfsprg 0, 7
143         mfsprg7 0
144         mtsprg 7, 0
145         mtsprg7 0