1 # RUN: llvm-mc -triple powerpc64-unknown-unknown --show-encoding %s | FileCheck -check-prefix=CHECK-BE %s
2 # RUN: llvm-mc -triple powerpc64le-unknown-unknown --show-encoding %s | FileCheck -check-prefix=CHECK-LE %s
4 # Instructions specific to the PowerPC 4xx embedded controllers:
6 # CHECK-BE: mfdcr 3, 178 # encoding: [0x7c,0x72,0x2a,0x86]
7 # CHECK-LE: mfdcr 3, 178 # encoding: [0x86,0x2a,0x72,0x7c]
9 # CHECK-BE: mtdcr 178, 3 # encoding: [0x7c,0x72,0x2b,0x86]
10 # CHECK-LE: mtdcr 178, 3 # encoding: [0x86,0x2b,0x72,0x7c]
13 # CHECK-BE: tlbrehi 2, 3 # encoding: [0x7c,0x43,0x07,0x64]
14 # CHECK-LE: tlbrehi 2, 3 # encoding: [0x64,0x07,0x43,0x7c]
16 # CHECK-BE: tlbrelo 2, 3 # encoding: [0x7c,0x43,0x0f,0x64]
17 # CHECK-LE: tlbrelo 2, 3 # encoding: [0x64,0x0f,0x43,0x7c]
19 # CHECK-BE: tlbrehi 2, 3 # encoding: [0x7c,0x43,0x07,0x64]
20 # CHECK-LE: tlbrehi 2, 3 # encoding: [0x64,0x07,0x43,0x7c]
22 # CHECK-BE: tlbrelo 2, 3 # encoding: [0x7c,0x43,0x0f,0x64]
23 # CHECK-LE: tlbrelo 2, 3 # encoding: [0x64,0x0f,0x43,0x7c]
26 # CHECK-BE: tlbwehi 2, 3 # encoding: [0x7c,0x43,0x07,0xa4]
27 # CHECK-LE: tlbwehi 2, 3 # encoding: [0xa4,0x07,0x43,0x7c]
29 # CHECK-BE: tlbwelo 2, 3 # encoding: [0x7c,0x43,0x0f,0xa4]
30 # CHECK-LE: tlbwelo 2, 3 # encoding: [0xa4,0x0f,0x43,0x7c]
32 # CHECK-BE: tlbwehi 2, 3 # encoding: [0x7c,0x43,0x07,0xa4]
33 # CHECK-LE: tlbwehi 2, 3 # encoding: [0xa4,0x07,0x43,0x7c]
35 # CHECK-BE: tlbwelo 2, 3 # encoding: [0x7c,0x43,0x0f,0xa4]
36 # CHECK-LE: tlbwelo 2, 3 # encoding: [0xa4,0x0f,0x43,0x7c]
39 # CHECK-BE: tlbsx 2, 3, 1 # encoding: [0x7c,0x43,0x0f,0x24]
40 # CHECK-LE: tlbsx 2, 3, 1 # encoding: [0x24,0x0f,0x43,0x7c]
42 # CHECK-BE: tlbsx. 2, 3, 1 # encoding: [0x7c,0x43,0x0f,0x25]
43 # CHECK-LE: tlbsx. 2, 3, 1 # encoding: [0x25,0x0f,0x43,0x7c]
46 # CHECK-BE: mfdccr 2 # encoding: [0x7c,0x5a,0xfa,0xa6]
47 # CHECK-LE: mfdccr 2 # encoding: [0xa6,0xfa,0x5a,0x7c]
49 # CHECK-BE: mtdccr 2 # encoding: [0x7c,0x5a,0xfb,0xa6]
50 # CHECK-LE: mtdccr 2 # encoding: [0xa6,0xfb,0x5a,0x7c]
53 # CHECK-BE: mficcr 2 # encoding: [0x7c,0x5b,0xfa,0xa6]
54 # CHECK-LE: mficcr 2 # encoding: [0xa6,0xfa,0x5b,0x7c]
56 # CHECK-BE: mticcr 2 # encoding: [0x7c,0x5b,0xfb,0xa6]
57 # CHECK-LE: mticcr 2 # encoding: [0xa6,0xfb,0x5b,0x7c]
60 # CHECK-BE: mfdear 2 # encoding: [0x7c,0x55,0xf2,0xa6]
61 # CHECK-LE: mfdear 2 # encoding: [0xa6,0xf2,0x55,0x7c]
63 # CHECK-BE: mtdear 2 # encoding: [0x7c,0x55,0xf3,0xa6]
64 # CHECK-LE: mtdear 2 # encoding: [0xa6,0xf3,0x55,0x7c]
67 # CHECK-BE: mfesr 2 # encoding: [0x7c,0x54,0xf2,0xa6]
68 # CHECK-LE: mfesr 2 # encoding: [0xa6,0xf2,0x54,0x7c]
70 # CHECK-BE: mtesr 2 # encoding: [0x7c,0x54,0xf3,0xa6]
71 # CHECK-LE: mtesr 2 # encoding: [0xa6,0xf3,0x54,0x7c]
74 # CHECK-BE: mftcr 2 # encoding: [0x7c,0x5a,0xf2,0xa6]
75 # CHECK-LE: mftcr 2 # encoding: [0xa6,0xf2,0x5a,0x7c]
77 # CHECK-BE: mttcr 2 # encoding: [0x7c,0x5a,0xf3,0xa6]
78 # CHECK-LE: mttcr 2 # encoding: [0xa6,0xf3,0x5a,0x7c]
81 # CHECK-BE: mftblo 2 # encoding: [0x7c,0x5d,0xf2,0xa6]
82 # CHECK-LE: mftblo 2 # encoding: [0xa6,0xf2,0x5d,0x7c]
84 # CHECK-BE: mttblo 2 # encoding: [0x7c,0x5d,0xf3,0xa6]
85 # CHECK-LE: mttblo 2 # encoding: [0xa6,0xf3,0x5d,0x7c]
87 # CHECK-BE: mftbhi 2 # encoding: [0x7c,0x5c,0xf2,0xa6]
88 # CHECK-LE: mftbhi 2 # encoding: [0xa6,0xf2,0x5c,0x7c]
90 # CHECK-BE: mttbhi 2 # encoding: [0x7c,0x5c,0xf3,0xa6]
91 # CHECK-LE: mttbhi 2 # encoding: [0xa6,0xf3,0x5c,0x7c]
94 # CHECK-BE: dccci 5, 6 # encoding: [0x7c,0x05,0x33,0x8c]
95 # CHECK-LE: dccci 5, 6 # encoding: [0x8c,0x33,0x05,0x7c]
97 # CHECK-BE: iccci 5, 6 # encoding: [0x7c,0x05,0x37,0x8c]
98 # CHECK-LE: iccci 5, 6 # encoding: [0x8c,0x37,0x05,0x7c]
100 # CHECK-BE: dccci 0, 0 # encoding: [0x7c,0x00,0x03,0x8c]
101 # CHECK-LE: dccci 0, 0 # encoding: [0x8c,0x03,0x00,0x7c]
103 # CHECK-BE: iccci 0, 0 # encoding: [0x7c,0x00,0x07,0x8c]
104 # CHECK-LE: iccci 0, 0 # encoding: [0x8c,0x07,0x00,0x7c]
107 # CHECK-BE: mfsrr2 2 # encoding: [0x7c,0x5e,0xf2,0xa6]
108 # CHECK-LE: mfsrr2 2 # encoding: [0xa6,0xf2,0x5e,0x7c]
110 # CHECK-BE: mtsrr2 2 # encoding: [0x7c,0x5e,0xf3,0xa6]
111 # CHECK-LE: mtsrr2 2 # encoding: [0xa6,0xf3,0x5e,0x7c]
113 # CHECK-BE: mfsrr3 2 # encoding: [0x7c,0x5f,0xf2,0xa6]
114 # CHECK-LE: mfsrr3 2 # encoding: [0xa6,0xf2,0x5f,0x7c]
116 # CHECK-BE: mtsrr3 2 # encoding: [0x7c,0x5f,0xf3,0xa6]
117 # CHECK-LE: mtsrr3 2 # encoding: [0xa6,0xf3,0x5f,0x7c]
120 # CHECK-BE: mfbr0 5 # encoding: [0x7c,0xa0,0x22,0x86]
121 # CHECK-LE: mfbr0 5 # encoding: [0x86,0x22,0xa0,0x7c]
123 # CHECK-BE: mtbr0 5 # encoding: [0x7c,0xa0,0x23,0x86]
124 # CHECK-LE: mtbr0 5 # encoding: [0x86,0x23,0xa0,0x7c]
126 # CHECK-BE: mfbr1 5 # encoding: [0x7c,0xa1,0x22,0x86]
127 # CHECK-LE: mfbr1 5 # encoding: [0x86,0x22,0xa1,0x7c]
129 # CHECK-BE: mtbr1 5 # encoding: [0x7c,0xa1,0x23,0x86]
130 # CHECK-LE: mtbr1 5 # encoding: [0x86,0x23,0xa1,0x7c]
132 # CHECK-BE: mfbr2 5 # encoding: [0x7c,0xa2,0x22,0x86]
133 # CHECK-LE: mfbr2 5 # encoding: [0x86,0x22,0xa2,0x7c]
135 # CHECK-BE: mtbr2 5 # encoding: [0x7c,0xa2,0x23,0x86]
136 # CHECK-LE: mtbr2 5 # encoding: [0x86,0x23,0xa2,0x7c]
138 # CHECK-BE: mfbr3 5 # encoding: [0x7c,0xa3,0x22,0x86]
139 # CHECK-LE: mfbr3 5 # encoding: [0x86,0x22,0xa3,0x7c]
141 # CHECK-BE: mtbr3 5 # encoding: [0x7c,0xa3,0x23,0x86]
142 # CHECK-LE: mtbr3 5 # encoding: [0x86,0x23,0xa3,0x7c]
144 # CHECK-BE: mfbr4 5 # encoding: [0x7c,0xa4,0x22,0x86]
145 # CHECK-LE: mfbr4 5 # encoding: [0x86,0x22,0xa4,0x7c]
147 # CHECK-BE: mtbr4 5 # encoding: [0x7c,0xa4,0x23,0x86]
148 # CHECK-LE: mtbr4 5 # encoding: [0x86,0x23,0xa4,0x7c]
150 # CHECK-BE: mfbr5 5 # encoding: [0x7c,0xa5,0x22,0x86]
151 # CHECK-LE: mfbr5 5 # encoding: [0x86,0x22,0xa5,0x7c]
153 # CHECK-BE: mtbr5 5 # encoding: [0x7c,0xa5,0x23,0x86]
154 # CHECK-LE: mtbr5 5 # encoding: [0x86,0x23,0xa5,0x7c]
156 # CHECK-BE: mfbr6 5 # encoding: [0x7c,0xa6,0x22,0x86]
157 # CHECK-LE: mfbr6 5 # encoding: [0x86,0x22,0xa6,0x7c]
159 # CHECK-BE: mtbr6 5 # encoding: [0x7c,0xa6,0x23,0x86]
160 # CHECK-LE: mtbr6 5 # encoding: [0x86,0x23,0xa6,0x7c]
162 # CHECK-BE: mfbr7 5 # encoding: [0x7c,0xa7,0x22,0x86]
163 # CHECK-LE: mfbr7 5 # encoding: [0x86,0x22,0xa7,0x7c]
165 # CHECK-BE: mtbr7 5 # encoding: [0x7c,0xa7,0x23,0x86]
166 # CHECK-LE: mtbr7 5 # encoding: [0x86,0x23,0xa7,0x7c]