1
2# RUN: llvm-mc -triple powerpc64-unknown-unknown --show-encoding %s | FileCheck -check-prefix=CHECK-BE %s
3# RUN: llvm-mc -triple powerpc64le-unknown-unknown --show-encoding %s | FileCheck -check-prefix=CHECK-LE %s
4
5# Floating-point facility
6
7# Floating-point load instructions
8
9# CHECK-BE: lfs 2, 128(4)                   # encoding: [0xc0,0x44,0x00,0x80]
10# CHECK-LE: lfs 2, 128(4)                   # encoding: [0x80,0x00,0x44,0xc0]
11            lfs 2, 128(4)
12# CHECK-BE: lfsx 2, 3, 4                    # encoding: [0x7c,0x43,0x24,0x2e]
13# CHECK-LE: lfsx 2, 3, 4                    # encoding: [0x2e,0x24,0x43,0x7c]
14            lfsx 2, 3, 4
15# CHECK-BE: lfsu 2, 128(4)                  # encoding: [0xc4,0x44,0x00,0x80]
16# CHECK-LE: lfsu 2, 128(4)                  # encoding: [0x80,0x00,0x44,0xc4]
17            lfsu 2, 128(4)
18# CHECK-BE: lfsux 2, 3, 4                   # encoding: [0x7c,0x43,0x24,0x6e]
19# CHECK-LE: lfsux 2, 3, 4                   # encoding: [0x6e,0x24,0x43,0x7c]
20            lfsux 2, 3, 4
21# CHECK-BE: lfd 2, 128(4)                   # encoding: [0xc8,0x44,0x00,0x80]
22# CHECK-LE: lfd 2, 128(4)                   # encoding: [0x80,0x00,0x44,0xc8]
23            lfd 2, 128(4)
24# CHECK-BE: lfdx 2, 3, 4                    # encoding: [0x7c,0x43,0x24,0xae]
25# CHECK-LE: lfdx 2, 3, 4                    # encoding: [0xae,0x24,0x43,0x7c]
26            lfdx 2, 3, 4
27# CHECK-BE: lfdu 2, 128(4)                  # encoding: [0xcc,0x44,0x00,0x80]
28# CHECK-LE: lfdu 2, 128(4)                  # encoding: [0x80,0x00,0x44,0xcc]
29            lfdu 2, 128(4)
30# CHECK-BE: lfdux 2, 3, 4                   # encoding: [0x7c,0x43,0x24,0xee]
31# CHECK-LE: lfdux 2, 3, 4                   # encoding: [0xee,0x24,0x43,0x7c]
32            lfdux 2, 3, 4
33# CHECK-BE: lfiwax 2, 3, 4                  # encoding: [0x7c,0x43,0x26,0xae]
34# CHECK-LE: lfiwax 2, 3, 4                  # encoding: [0xae,0x26,0x43,0x7c]
35            lfiwax 2, 3, 4
36# CHECK-BE: lfiwzx 2, 3, 4                  # encoding: [0x7c,0x43,0x26,0xee]
37# CHECK-LE: lfiwzx 2, 3, 4                  # encoding: [0xee,0x26,0x43,0x7c]
38            lfiwzx 2, 3, 4
39
40# Floating-point store instructions
41
42# CHECK-BE: stfs 2, 128(4)                  # encoding: [0xd0,0x44,0x00,0x80]
43# CHECK-LE: stfs 2, 128(4)                  # encoding: [0x80,0x00,0x44,0xd0]
44            stfs 2, 128(4)
45# CHECK-BE: stfsx 2, 3, 4                   # encoding: [0x7c,0x43,0x25,0x2e]
46# CHECK-LE: stfsx 2, 3, 4                   # encoding: [0x2e,0x25,0x43,0x7c]
47            stfsx 2, 3, 4
48# CHECK-BE: stfsu 2, 128(4)                 # encoding: [0xd4,0x44,0x00,0x80]
49# CHECK-LE: stfsu 2, 128(4)                 # encoding: [0x80,0x00,0x44,0xd4]
50            stfsu 2, 128(4)
51# CHECK-BE: stfsux 2, 3, 4                  # encoding: [0x7c,0x43,0x25,0x6e]
52# CHECK-LE: stfsux 2, 3, 4                  # encoding: [0x6e,0x25,0x43,0x7c]
53            stfsux 2, 3, 4
54# CHECK-BE: stfd 2, 128(4)                  # encoding: [0xd8,0x44,0x00,0x80]
55# CHECK-LE: stfd 2, 128(4)                  # encoding: [0x80,0x00,0x44,0xd8]
56            stfd 2, 128(4)
57# CHECK-BE: stfdx 2, 3, 4                   # encoding: [0x7c,0x43,0x25,0xae]
58# CHECK-LE: stfdx 2, 3, 4                   # encoding: [0xae,0x25,0x43,0x7c]
59            stfdx 2, 3, 4
60# CHECK-BE: stfdu 2, 128(4)                 # encoding: [0xdc,0x44,0x00,0x80]
61# CHECK-LE: stfdu 2, 128(4)                 # encoding: [0x80,0x00,0x44,0xdc]
62            stfdu 2, 128(4)
63# CHECK-BE: stfdux 2, 3, 4                  # encoding: [0x7c,0x43,0x25,0xee]
64# CHECK-LE: stfdux 2, 3, 4                  # encoding: [0xee,0x25,0x43,0x7c]
65            stfdux 2, 3, 4
66# CHECK-BE: stfiwx 2, 3, 4                  # encoding: [0x7c,0x43,0x27,0xae]
67# CHECK-LE: stfiwx 2, 3, 4                  # encoding: [0xae,0x27,0x43,0x7c]
68            stfiwx 2, 3, 4
69
70# Floating-point move instructions
71
72# CHECK-BE: fmr 2, 3                        # encoding: [0xfc,0x40,0x18,0x90]
73# CHECK-LE: fmr 2, 3                        # encoding: [0x90,0x18,0x40,0xfc]
74            fmr 2, 3
75# CHECK-BE: fmr. 2, 3                       # encoding: [0xfc,0x40,0x18,0x91]
76# CHECK-LE: fmr. 2, 3                       # encoding: [0x91,0x18,0x40,0xfc]
77            fmr. 2, 3
78# CHECK-BE: fneg 2, 3                       # encoding: [0xfc,0x40,0x18,0x50]
79# CHECK-LE: fneg 2, 3                       # encoding: [0x50,0x18,0x40,0xfc]
80            fneg 2, 3
81# CHECK-BE: fneg. 2, 3                      # encoding: [0xfc,0x40,0x18,0x51]
82# CHECK-LE: fneg. 2, 3                      # encoding: [0x51,0x18,0x40,0xfc]
83            fneg. 2, 3
84# CHECK-BE: fabs 2, 3                       # encoding: [0xfc,0x40,0x1a,0x10]
85# CHECK-LE: fabs 2, 3                       # encoding: [0x10,0x1a,0x40,0xfc]
86            fabs 2, 3
87# CHECK-BE: fabs. 2, 3                      # encoding: [0xfc,0x40,0x1a,0x11]
88# CHECK-LE: fabs. 2, 3                      # encoding: [0x11,0x1a,0x40,0xfc]
89            fabs. 2, 3
90# CHECK-BE: fnabs 2, 3                      # encoding: [0xfc,0x40,0x19,0x10]
91# CHECK-LE: fnabs 2, 3                      # encoding: [0x10,0x19,0x40,0xfc]
92            fnabs 2, 3
93# CHECK-BE: fnabs. 2, 3                     # encoding: [0xfc,0x40,0x19,0x11]
94# CHECK-LE: fnabs. 2, 3                     # encoding: [0x11,0x19,0x40,0xfc]
95            fnabs. 2, 3
96# CHECK-BE: fcpsgn 2, 3, 4                  # encoding: [0xfc,0x43,0x20,0x10]
97# CHECK-LE: fcpsgn 2, 3, 4                  # encoding: [0x10,0x20,0x43,0xfc]
98            fcpsgn 2, 3, 4
99# CHECK-BE: fcpsgn. 2, 3, 4                 # encoding: [0xfc,0x43,0x20,0x11]
100# CHECK-LE: fcpsgn. 2, 3, 4                 # encoding: [0x11,0x20,0x43,0xfc]
101            fcpsgn. 2, 3, 4
102
103# Floating-point arithmetic instructions
104
105# CHECK-BE: fadd 2, 3, 4                    # encoding: [0xfc,0x43,0x20,0x2a]
106# CHECK-LE: fadd 2, 3, 4                    # encoding: [0x2a,0x20,0x43,0xfc]
107            fadd 2, 3, 4
108# CHECK-BE: fadd. 2, 3, 4                   # encoding: [0xfc,0x43,0x20,0x2b]
109# CHECK-LE: fadd. 2, 3, 4                   # encoding: [0x2b,0x20,0x43,0xfc]
110            fadd. 2, 3, 4
111# CHECK-BE: fadds 2, 3, 4                   # encoding: [0xec,0x43,0x20,0x2a]
112# CHECK-LE: fadds 2, 3, 4                   # encoding: [0x2a,0x20,0x43,0xec]
113            fadds 2, 3, 4
114# CHECK-BE: fadds. 2, 3, 4                  # encoding: [0xec,0x43,0x20,0x2b]
115# CHECK-LE: fadds. 2, 3, 4                  # encoding: [0x2b,0x20,0x43,0xec]
116            fadds. 2, 3, 4
117# CHECK-BE: fsub 2, 3, 4                    # encoding: [0xfc,0x43,0x20,0x28]
118# CHECK-LE: fsub 2, 3, 4                    # encoding: [0x28,0x20,0x43,0xfc]
119            fsub 2, 3, 4
120# CHECK-BE: fsub. 2, 3, 4                   # encoding: [0xfc,0x43,0x20,0x29]
121# CHECK-LE: fsub. 2, 3, 4                   # encoding: [0x29,0x20,0x43,0xfc]
122            fsub. 2, 3, 4
123# CHECK-BE: fsubs 2, 3, 4                   # encoding: [0xec,0x43,0x20,0x28]
124# CHECK-LE: fsubs 2, 3, 4                   # encoding: [0x28,0x20,0x43,0xec]
125            fsubs 2, 3, 4
126# CHECK-BE: fsubs. 2, 3, 4                  # encoding: [0xec,0x43,0x20,0x29]
127# CHECK-LE: fsubs. 2, 3, 4                  # encoding: [0x29,0x20,0x43,0xec]
128            fsubs. 2, 3, 4
129
130# CHECK-BE: fmul 2, 3, 4                    # encoding: [0xfc,0x43,0x01,0x32]
131# CHECK-LE: fmul 2, 3, 4                    # encoding: [0x32,0x01,0x43,0xfc]
132            fmul 2, 3, 4
133# CHECK-BE: fmul. 2, 3, 4                   # encoding: [0xfc,0x43,0x01,0x33]
134# CHECK-LE: fmul. 2, 3, 4                   # encoding: [0x33,0x01,0x43,0xfc]
135            fmul. 2, 3, 4
136# CHECK-BE: fmuls 2, 3, 4                   # encoding: [0xec,0x43,0x01,0x32]
137# CHECK-LE: fmuls 2, 3, 4                   # encoding: [0x32,0x01,0x43,0xec]
138            fmuls 2, 3, 4
139# CHECK-BE: fmuls. 2, 3, 4                  # encoding: [0xec,0x43,0x01,0x33]
140# CHECK-LE: fmuls. 2, 3, 4                  # encoding: [0x33,0x01,0x43,0xec]
141            fmuls. 2, 3, 4
142# CHECK-BE: fdiv 2, 3, 4                    # encoding: [0xfc,0x43,0x20,0x24]
143# CHECK-LE: fdiv 2, 3, 4                    # encoding: [0x24,0x20,0x43,0xfc]
144            fdiv 2, 3, 4
145# CHECK-BE: fdiv. 2, 3, 4                   # encoding: [0xfc,0x43,0x20,0x25]
146# CHECK-LE: fdiv. 2, 3, 4                   # encoding: [0x25,0x20,0x43,0xfc]
147            fdiv. 2, 3, 4
148# CHECK-BE: fdivs 2, 3, 4                   # encoding: [0xec,0x43,0x20,0x24]
149# CHECK-LE: fdivs 2, 3, 4                   # encoding: [0x24,0x20,0x43,0xec]
150            fdivs 2, 3, 4
151# CHECK-BE: fdivs. 2, 3, 4                  # encoding: [0xec,0x43,0x20,0x25]
152# CHECK-LE: fdivs. 2, 3, 4                  # encoding: [0x25,0x20,0x43,0xec]
153            fdivs. 2, 3, 4
154# CHECK-BE: fsqrt 2, 3                      # encoding: [0xfc,0x40,0x18,0x2c]
155# CHECK-LE: fsqrt 2, 3                      # encoding: [0x2c,0x18,0x40,0xfc]
156            fsqrt 2, 3
157# CHECK-BE: fsqrt. 2, 3                     # encoding: [0xfc,0x40,0x18,0x2d]
158# CHECK-LE: fsqrt. 2, 3                     # encoding: [0x2d,0x18,0x40,0xfc]
159            fsqrt. 2, 3
160# CHECK-BE: fsqrts 2, 3                     # encoding: [0xec,0x40,0x18,0x2c]
161# CHECK-LE: fsqrts 2, 3                     # encoding: [0x2c,0x18,0x40,0xec]
162            fsqrts 2, 3
163# CHECK-BE: fsqrts. 2, 3                    # encoding: [0xec,0x40,0x18,0x2d]
164# CHECK-LE: fsqrts. 2, 3                    # encoding: [0x2d,0x18,0x40,0xec]
165            fsqrts. 2, 3
166
167# CHECK-BE: fre 2, 3                        # encoding: [0xfc,0x40,0x18,0x30]
168# CHECK-LE: fre 2, 3                        # encoding: [0x30,0x18,0x40,0xfc]
169            fre 2, 3
170# CHECK-BE: fre. 2, 3                       # encoding: [0xfc,0x40,0x18,0x31]
171# CHECK-LE: fre. 2, 3                       # encoding: [0x31,0x18,0x40,0xfc]
172            fre. 2, 3
173# CHECK-BE: fres 2, 3                       # encoding: [0xec,0x40,0x18,0x30]
174# CHECK-LE: fres 2, 3                       # encoding: [0x30,0x18,0x40,0xec]
175            fres 2, 3
176# CHECK-BE: fres. 2, 3                      # encoding: [0xec,0x40,0x18,0x31]
177# CHECK-LE: fres. 2, 3                      # encoding: [0x31,0x18,0x40,0xec]
178            fres. 2, 3
179# CHECK-BE: frsqrte 2, 3                    # encoding: [0xfc,0x40,0x18,0x34]
180# CHECK-LE: frsqrte 2, 3                    # encoding: [0x34,0x18,0x40,0xfc]
181            frsqrte 2, 3
182# CHECK-BE: frsqrte. 2, 3                   # encoding: [0xfc,0x40,0x18,0x35]
183# CHECK-LE: frsqrte. 2, 3                   # encoding: [0x35,0x18,0x40,0xfc]
184            frsqrte. 2, 3
185# CHECK-BE: frsqrtes 2, 3                   # encoding: [0xec,0x40,0x18,0x34]
186# CHECK-LE: frsqrtes 2, 3                   # encoding: [0x34,0x18,0x40,0xec]
187            frsqrtes 2, 3
188# CHECK-BE: frsqrtes. 2, 3                  # encoding: [0xec,0x40,0x18,0x35]
189# CHECK-LE: frsqrtes. 2, 3                  # encoding: [0x35,0x18,0x40,0xec]
190            frsqrtes. 2, 3
191# FIXME:    ftdiv 2, 3, 4
192# FIXME:    ftsqrt 2, 3, 4
193
194# CHECK-BE: fmadd 2, 3, 4, 5                # encoding: [0xfc,0x43,0x29,0x3a]
195# CHECK-LE: fmadd 2, 3, 4, 5                # encoding: [0x3a,0x29,0x43,0xfc]
196            fmadd 2, 3, 4, 5
197# CHECK-BE: fmadd. 2, 3, 4, 5               # encoding: [0xfc,0x43,0x29,0x3b]
198# CHECK-LE: fmadd. 2, 3, 4, 5               # encoding: [0x3b,0x29,0x43,0xfc]
199            fmadd. 2, 3, 4, 5
200# CHECK-BE: fmadds 2, 3, 4, 5               # encoding: [0xec,0x43,0x29,0x3a]
201# CHECK-LE: fmadds 2, 3, 4, 5               # encoding: [0x3a,0x29,0x43,0xec]
202            fmadds 2, 3, 4, 5
203# CHECK-BE: fmadds. 2, 3, 4, 5              # encoding: [0xec,0x43,0x29,0x3b]
204# CHECK-LE: fmadds. 2, 3, 4, 5              # encoding: [0x3b,0x29,0x43,0xec]
205            fmadds. 2, 3, 4, 5
206# CHECK-BE: fmsub 2, 3, 4, 5                # encoding: [0xfc,0x43,0x29,0x38]
207# CHECK-LE: fmsub 2, 3, 4, 5                # encoding: [0x38,0x29,0x43,0xfc]
208            fmsub 2, 3, 4, 5
209# CHECK-BE: fmsub. 2, 3, 4, 5               # encoding: [0xfc,0x43,0x29,0x39]
210# CHECK-LE: fmsub. 2, 3, 4, 5               # encoding: [0x39,0x29,0x43,0xfc]
211            fmsub. 2, 3, 4, 5
212# CHECK-BE: fmsubs 2, 3, 4, 5               # encoding: [0xec,0x43,0x29,0x38]
213# CHECK-LE: fmsubs 2, 3, 4, 5               # encoding: [0x38,0x29,0x43,0xec]
214            fmsubs 2, 3, 4, 5
215# CHECK-BE: fmsubs. 2, 3, 4, 5              # encoding: [0xec,0x43,0x29,0x39]
216# CHECK-LE: fmsubs. 2, 3, 4, 5              # encoding: [0x39,0x29,0x43,0xec]
217            fmsubs. 2, 3, 4, 5
218# CHECK-BE: fnmadd 2, 3, 4, 5               # encoding: [0xfc,0x43,0x29,0x3e]
219# CHECK-LE: fnmadd 2, 3, 4, 5               # encoding: [0x3e,0x29,0x43,0xfc]
220            fnmadd 2, 3, 4, 5
221# CHECK-BE: fnmadd. 2, 3, 4, 5              # encoding: [0xfc,0x43,0x29,0x3f]
222# CHECK-LE: fnmadd. 2, 3, 4, 5              # encoding: [0x3f,0x29,0x43,0xfc]
223            fnmadd. 2, 3, 4, 5
224# CHECK-BE: fnmadds 2, 3, 4, 5              # encoding: [0xec,0x43,0x29,0x3e]
225# CHECK-LE: fnmadds 2, 3, 4, 5              # encoding: [0x3e,0x29,0x43,0xec]
226            fnmadds 2, 3, 4, 5
227# CHECK-BE: fnmadds. 2, 3, 4, 5             # encoding: [0xec,0x43,0x29,0x3f]
228# CHECK-LE: fnmadds. 2, 3, 4, 5             # encoding: [0x3f,0x29,0x43,0xec]
229            fnmadds. 2, 3, 4, 5
230# CHECK-BE: fnmsub 2, 3, 4, 5               # encoding: [0xfc,0x43,0x29,0x3c]
231# CHECK-LE: fnmsub 2, 3, 4, 5               # encoding: [0x3c,0x29,0x43,0xfc]
232            fnmsub 2, 3, 4, 5
233# CHECK-BE: fnmsub. 2, 3, 4, 5              # encoding: [0xfc,0x43,0x29,0x3d]
234# CHECK-LE: fnmsub. 2, 3, 4, 5              # encoding: [0x3d,0x29,0x43,0xfc]
235            fnmsub. 2, 3, 4, 5
236# CHECK-BE: fnmsubs 2, 3, 4, 5              # encoding: [0xec,0x43,0x29,0x3c]
237# CHECK-LE: fnmsubs 2, 3, 4, 5              # encoding: [0x3c,0x29,0x43,0xec]
238            fnmsubs 2, 3, 4, 5
239# CHECK-BE: fnmsubs. 2, 3, 4, 5             # encoding: [0xec,0x43,0x29,0x3d]
240# CHECK-LE: fnmsubs. 2, 3, 4, 5             # encoding: [0x3d,0x29,0x43,0xec]
241            fnmsubs. 2, 3, 4, 5
242
243# Floating-point rounding and conversion instructions
244
245# CHECK-BE: frsp 2, 3                       # encoding: [0xfc,0x40,0x18,0x18]
246# CHECK-LE: frsp 2, 3                       # encoding: [0x18,0x18,0x40,0xfc]
247            frsp 2, 3
248# CHECK-BE: frsp. 2, 3                      # encoding: [0xfc,0x40,0x18,0x19]
249# CHECK-LE: frsp. 2, 3                      # encoding: [0x19,0x18,0x40,0xfc]
250            frsp. 2, 3
251
252# CHECK-BE: fctid 2, 3                      # encoding: [0xfc,0x40,0x1e,0x5c]
253# CHECK-LE: fctid 2, 3                      # encoding: [0x5c,0x1e,0x40,0xfc]
254            fctid 2, 3
255# CHECK-BE: fctid. 2, 3                     # encoding: [0xfc,0x40,0x1e,0x5d]
256# CHECK-LE: fctid. 2, 3                     # encoding: [0x5d,0x1e,0x40,0xfc]
257            fctid. 2, 3
258# CHECK-BE: fctidz 2, 3                     # encoding: [0xfc,0x40,0x1e,0x5e]
259# CHECK-LE: fctidz 2, 3                     # encoding: [0x5e,0x1e,0x40,0xfc]
260            fctidz 2, 3
261# CHECK-BE: fctidz. 2, 3                    # encoding: [0xfc,0x40,0x1e,0x5f]
262# CHECK-LE: fctidz. 2, 3                    # encoding: [0x5f,0x1e,0x40,0xfc]
263            fctidz. 2, 3
264# FIXME:    fctidu 2, 3
265# FIXME:    fctidu. 2, 3
266# CHECK-BE: fctiduz 2, 3                    # encoding: [0xfc,0x40,0x1f,0x5e]
267# CHECK-LE: fctiduz 2, 3                    # encoding: [0x5e,0x1f,0x40,0xfc]
268            fctiduz 2, 3
269# CHECK-BE: fctiduz. 2, 3                   # encoding: [0xfc,0x40,0x1f,0x5f]
270# CHECK-LE: fctiduz. 2, 3                   # encoding: [0x5f,0x1f,0x40,0xfc]
271            fctiduz. 2, 3
272# CHECK-BE: fctiw 2, 3                      # encoding: [0xfc,0x40,0x18,0x1c]
273# CHECK-LE: fctiw 2, 3                      # encoding: [0x1c,0x18,0x40,0xfc]
274            fctiw 2, 3
275# CHECK-BE: fctiw. 2, 3                     # encoding: [0xfc,0x40,0x18,0x1d]
276# CHECK-LE: fctiw. 2, 3                     # encoding: [0x1d,0x18,0x40,0xfc]
277            fctiw. 2, 3
278# CHECK-BE: fctiwz 2, 3                     # encoding: [0xfc,0x40,0x18,0x1e]
279# CHECK-LE: fctiwz 2, 3                     # encoding: [0x1e,0x18,0x40,0xfc]
280            fctiwz 2, 3
281# CHECK-BE: fctiwz. 2, 3                    # encoding: [0xfc,0x40,0x18,0x1f]
282# CHECK-LE: fctiwz. 2, 3                    # encoding: [0x1f,0x18,0x40,0xfc]
283            fctiwz. 2, 3
284# FIXME:    fctiwu 2, 3
285# FIXME:    fctiwu. 2, 3
286# CHECK-BE: fctiwuz 2, 3                    # encoding: [0xfc,0x40,0x19,0x1e]
287# CHECK-LE: fctiwuz 2, 3                    # encoding: [0x1e,0x19,0x40,0xfc]
288            fctiwuz 2, 3
289# CHECK-BE: fctiwuz. 2, 3                   # encoding: [0xfc,0x40,0x19,0x1f]
290# CHECK-LE: fctiwuz. 2, 3                   # encoding: [0x1f,0x19,0x40,0xfc]
291            fctiwuz. 2, 3
292# CHECK-BE: fcfid 2, 3                      # encoding: [0xfc,0x40,0x1e,0x9c]
293# CHECK-LE: fcfid 2, 3                      # encoding: [0x9c,0x1e,0x40,0xfc]
294            fcfid 2, 3
295# CHECK-BE: fcfid. 2, 3                     # encoding: [0xfc,0x40,0x1e,0x9d]
296# CHECK-LE: fcfid. 2, 3                     # encoding: [0x9d,0x1e,0x40,0xfc]
297            fcfid. 2, 3
298# CHECK-BE: fcfidu 2, 3                     # encoding: [0xfc,0x40,0x1f,0x9c]
299# CHECK-LE: fcfidu 2, 3                     # encoding: [0x9c,0x1f,0x40,0xfc]
300            fcfidu 2, 3
301# CHECK-BE: fcfidu. 2, 3                    # encoding: [0xfc,0x40,0x1f,0x9d]
302# CHECK-LE: fcfidu. 2, 3                    # encoding: [0x9d,0x1f,0x40,0xfc]
303            fcfidu. 2, 3
304# CHECK-BE: fcfids 2, 3                     # encoding: [0xec,0x40,0x1e,0x9c]
305# CHECK-LE: fcfids 2, 3                     # encoding: [0x9c,0x1e,0x40,0xec]
306            fcfids 2, 3
307# CHECK-BE: fcfids. 2, 3                    # encoding: [0xec,0x40,0x1e,0x9d]
308# CHECK-LE: fcfids. 2, 3                    # encoding: [0x9d,0x1e,0x40,0xec]
309            fcfids. 2, 3
310# CHECK-BE: fcfidus 2, 3                    # encoding: [0xec,0x40,0x1f,0x9c]
311# CHECK-LE: fcfidus 2, 3                    # encoding: [0x9c,0x1f,0x40,0xec]
312            fcfidus 2, 3
313# CHECK-BE: fcfidus. 2, 3                   # encoding: [0xec,0x40,0x1f,0x9d]
314# CHECK-LE: fcfidus. 2, 3                   # encoding: [0x9d,0x1f,0x40,0xec]
315            fcfidus. 2, 3
316# CHECK-BE: frin 2, 3                       # encoding: [0xfc,0x40,0x1b,0x10]
317# CHECK-LE: frin 2, 3                       # encoding: [0x10,0x1b,0x40,0xfc]
318            frin 2, 3
319# CHECK-BE: frin. 2, 3                      # encoding: [0xfc,0x40,0x1b,0x11]
320# CHECK-LE: frin. 2, 3                      # encoding: [0x11,0x1b,0x40,0xfc]
321            frin. 2, 3
322# CHECK-BE: frip 2, 3                       # encoding: [0xfc,0x40,0x1b,0x90]
323# CHECK-LE: frip 2, 3                       # encoding: [0x90,0x1b,0x40,0xfc]
324            frip 2, 3
325# CHECK-BE: frip. 2, 3                      # encoding: [0xfc,0x40,0x1b,0x91]
326# CHECK-LE: frip. 2, 3                      # encoding: [0x91,0x1b,0x40,0xfc]
327            frip. 2, 3
328# CHECK-BE: friz 2, 3                       # encoding: [0xfc,0x40,0x1b,0x50]
329# CHECK-LE: friz 2, 3                       # encoding: [0x50,0x1b,0x40,0xfc]
330            friz 2, 3
331# CHECK-BE: friz. 2, 3                      # encoding: [0xfc,0x40,0x1b,0x51]
332# CHECK-LE: friz. 2, 3                      # encoding: [0x51,0x1b,0x40,0xfc]
333            friz. 2, 3
334# CHECK-BE: frim 2, 3                       # encoding: [0xfc,0x40,0x1b,0xd0]
335# CHECK-LE: frim 2, 3                       # encoding: [0xd0,0x1b,0x40,0xfc]
336            frim 2, 3
337# CHECK-BE: frim. 2, 3                      # encoding: [0xfc,0x40,0x1b,0xd1]
338# CHECK-LE: frim. 2, 3                      # encoding: [0xd1,0x1b,0x40,0xfc]
339            frim. 2, 3
340
341# Floating-point compare instructions
342
343# CHECK-BE: fcmpu 2, 3, 4                   # encoding: [0xfd,0x03,0x20,0x00]
344# CHECK-LE: fcmpu 2, 3, 4                   # encoding: [0x00,0x20,0x03,0xfd]
345            fcmpu 2, 3, 4
346# FIXME:    fcmpo 2, 3, 4
347
348# Floating-point select instruction
349
350# CHECK-BE: fsel 2, 3, 4, 5                 # encoding: [0xfc,0x43,0x29,0x2e]
351# CHECK-LE: fsel 2, 3, 4, 5                 # encoding: [0x2e,0x29,0x43,0xfc]
352            fsel 2, 3, 4, 5
353# CHECK-BE: fsel. 2, 3, 4, 5                # encoding: [0xfc,0x43,0x29,0x2f]
354# CHECK-LE: fsel. 2, 3, 4, 5                # encoding: [0x2f,0x29,0x43,0xfc]
355            fsel. 2, 3, 4, 5
356
357# Floating-point status and control register instructions
358
359# CHECK-BE: mffs 2                          # encoding: [0xfc,0x40,0x04,0x8e]
360# CHECK-LE: mffs 2                          # encoding: [0x8e,0x04,0x40,0xfc]
361            mffs 2
362# CHECK-BE: mffs. 7                         # encoding: [0xfc,0xe0,0x04,0x8f]
363# CHECK-LE: mffs. 7                         # encoding: [0x8f,0x04,0xe0,0xfc]
364            mffs. 7
365# CHECK-BE: mcrfs 4, 5                      # encoding: [0xfe,0x14,0x00,0x80]
366# CHECK-LE: mcrfs 4, 5                      # encoding: [0x80,0x00,0x14,0xfe]
367            mcrfs 4, 5
368# CHECK-BE: mtfsfi 5, 2, 1                  # encoding: [0xfe,0x81,0x21,0x0c]
369# CHECK-LE: mtfsfi 5, 2, 1                  # encoding: [0x0c,0x21,0x81,0xfe]
370            mtfsfi 5, 2, 1
371# CHECK-BE: mtfsfi. 5, 2, 1                 # encoding: [0xfe,0x81,0x21,0x0d]
372# CHECK-LE: mtfsfi. 5, 2, 1                 # encoding: [0x0d,0x21,0x81,0xfe]
373            mtfsfi. 5, 2, 1
374# CHECK-BE: mtfsfi 6, 2, 0                  # encoding: [0xff,0x00,0x21,0x0c]
375# CHECK-LE: mtfsfi 6, 2, 0                  # encoding: [0x0c,0x21,0x00,0xff]
376            mtfsfi 6, 2
377# CHECK-BE: mtfsfi. 6, 2, 0                 # encoding: [0xff,0x00,0x21,0x0d]
378# CHECK-LE: mtfsfi. 6, 2, 0                 # encoding: [0x0d,0x21,0x00,0xff]
379            mtfsfi. 6, 2
380# CHECK-BE: mtfsf 127, 8, 1, 1              # encoding: [0xfe,0xff,0x45,0x8e]
381# CHECK-LE: mtfsf 127, 8, 1, 1              # encoding: [0x8e,0x45,0xff,0xfe]
382            mtfsf 127, 8, 1, 1
383# CHECK-BE: mtfsf. 125, 8, 1, 1             # encoding: [0xfe,0xfb,0x45,0x8f]
384# CHECK-LE: mtfsf. 125, 8, 1, 1             # encoding: [0x8f,0x45,0xfb,0xfe]
385            mtfsf. 125, 8, 1, 1
386# CHECK-BE: mtfsf 127, 6, 0, 0              # encoding: [0xfc,0xfe,0x35,0x8e]
387# CHECK-LE: mtfsf 127, 6, 0, 0              # encoding: [0x8e,0x35,0xfe,0xfc]
388            mtfsf 127, 6
389# CHECK-BE: mtfsf. 125, 6, 0, 0             # encoding: [0xfc,0xfa,0x35,0x8f]
390# CHECK-LE: mtfsf. 125, 6, 0, 0             # encoding: [0x8f,0x35,0xfa,0xfc]
391            mtfsf. 125, 6
392# CHECK-BE: mtfsb0 31                       # encoding: [0xff,0xe0,0x00,0x8c]
393# CHECK-LE: mtfsb0 31                       # encoding: [0x8c,0x00,0xe0,0xff]
394            mtfsb0 31
395# FIXME:    mtfsb0. 31
396# CHECK-BE: mtfsb1 31                       # encoding: [0xff,0xe0,0x00,0x4c]
397# CHECK-LE: mtfsb1 31                       # encoding: [0x4c,0x00,0xe0,0xff]
398            mtfsb1 31
399# FIXME:    mtfsb1. 31
400
401