[gas/ChangeLog]
[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
76 branch_target_7:
77         adde64  1, 2, 3
78         adde64o 4, 5, 6
79         addme64 7, 8
80         addme64o 9, 10
81         addze64 11, 12
82         addze64o 13, 14
83         mcrxr64 5
84         subfe64 15, 16, 17
85         subfe64o 18, 19, 20
86         subfme64 21, 22
87         subfme64o 23, 24
88         subfze64 25, 26
89         subfze64o 27, 28
90
91 branch_target_8:
92         stbe    1, 50(2)
93         stbue   3, 40(4)
94         stbuxe  5, 6, 7
95         stbxe   8, 9, 10
96         stdcxe. 11, 12, 13
97         stde    14, 28(15)
98         stdue   16, 20(17)
99         stdxe   18, 19, 20
100         stduxe  21, 22, 23
101         stfde   1, 12(24)
102         stfdue  2, 0(25)
103         stfdxe  3, 26, 27
104         stfduxe 4, 28, 29
105         stfiwxe 5, 30, 31
106         stfse   6, 24(30)
107         stfsue  7, 20(29)
108         stfsxe  8, 28, 27
109         stfsuxe 9, 26, 25
110         sthbrxe 24, 23, 22
111         sthe    21, 30(20)
112         sthue   19, 40(18)
113         sthuxe  17, 16, 15
114         sthxe   14, 13, 12
115         stwbrxe 11, 10, 9
116         stwcxe. 8, 7, 6
117         stwe    5, 50(4)
118         stwue   3, 40(2)
119         stwuxe  1, 2, 3
120         stwxe   4, 5, 6