1# Instructions that should be valid but currently fail for known reasons (e.g.
2# they aren't implemented yet).
3# This test is set up to XPASS if any instruction generates an encoding.
4#
5# RUN: not llvm-mc %s -triple=mips64-unknown-linux -show-encoding -mcpu=mips64r2 | not FileCheck %s
6# CHECK-NOT: encoding
7# XFAIL: *
8
9        .set noat
10        abs.ps          $f22,$f8
11        absq_s.ph       $8,$a0
12        absq_s.qb       $15,$s1
13        absq_s.w        $s3,$ra
14        add.ps          $f25,$f27,$f13
15        addq.ph         $s1,$15,$at
16        addq_s.ph       $s3,$s6,$s2
17        addq_s.w        $a2,$8,$at
18        addqh.ph        $s4,$14,$s1
19        addqh.w         $s7,$s7,$k1
20        addqh_r.ph      $sp,$25,$s8
21        addqh_r.w       $8,$v1,$zero
22        addsc           $s8,$15,$12
23        addu.ph         $a2,$14,$s3
24        addu.qb         $s6,$v1,$v1
25        addu_s.ph       $a3,$s3,$gp
26        addu_s.qb       $s4,$s8,$s1
27        adduh.qb        $a1,$a1,$at
28        adduh_r.qb      $a0,$9,$12
29        addwc           $k0,$s6,$s7
30        alnv.ob         $v22,$v19,$v30,$v1
31        alnv.ob         $v31,$v23,$v30,$at
32        alnv.ob         $v8,$v17,$v30,$a1
33        alnv.ps         $f12,$f18,$f30,$12
34        and.v           $w10,$w25,$w29
35        bitrev          $14,$at
36        bmnz.v          $w15,$w2,$w28
37        bmz.v           $w13,$w11,$w21
38        bsel.v          $w28,$w7,$w0
39        c.eq.d          $fcc1,$f15,$f15
40        c.eq.ps         $fcc5,$f0,$f9
41        c.eq.s          $fcc5,$f24,$f17
42        c.f.d           $fcc4,$f11,$f21
43        c.f.ps          $fcc6,$f11,$f11
44        c.f.s           $fcc4,$f30,$f7
45        c.le.d          $fcc4,$f18,$f1
46        c.le.ps         $fcc1,$f7,$f20
47        c.le.s          $fcc6,$f24,$f4
48        c.lt.d          $fcc3,$f9,$f3
49        c.lt.ps         $f19,$f5
50        c.lt.s          $fcc2,$f17,$f14
51        c.nge.d         $fcc5,$f21,$f16
52        c.nge.ps        $f1,$f26
53        c.nge.s         $fcc3,$f11,$f8
54        c.ngl.ps        $f21,$f30
55        c.ngl.s         $fcc2,$f31,$f23
56        c.ngle.ps       $fcc7,$f12,$f20
57        c.ngle.s        $fcc2,$f18,$f23
58        c.ngt.d         $fcc4,$f24,$f7
59        c.ngt.ps        $fcc5,$f30,$f6
60        c.ngt.s         $fcc5,$f8,$f13
61        c.ole.d         $fcc2,$f16,$f31
62        c.ole.ps        $fcc7,$f21,$f8
63        c.ole.s         $fcc3,$f7,$f20
64        c.olt.d         $fcc4,$f19,$f28
65        c.olt.ps        $fcc3,$f7,$f16
66        c.olt.s         $fcc6,$f20,$f7
67        c.seq.d         $fcc4,$f31,$f7
68        c.seq.ps        $fcc6,$f31,$f14
69        c.seq.s         $fcc7,$f1,$f25
70        c.sf.ps         $fcc6,$f4,$f6
71        c.ueq.d         $fcc4,$f13,$f25
72        c.ueq.ps        $fcc1,$f5,$f29
73        c.ueq.s         $fcc6,$f3,$f30
74        c.ule.d         $fcc7,$f25,$f18
75        c.ule.ps        $fcc6,$f17,$f3
76        c.ule.s         $fcc7,$f21,$f30
77        c.ult.d         $fcc6,$f6,$f17
78        c.ult.ps        $fcc7,$f14,$f0
79        c.ult.s         $fcc7,$f24,$f10
80        c.un.d          $fcc6,$f23,$f24
81        c.un.ps         $fcc4,$f2,$f26
82        c.un.s          $fcc1,$f30,$f4
83        cvt.ps.s        $f3,$f18,$f19
84        cmp.eq.ph       $s7,$14
85        cmp.le.ph       $8,$14
86        cmp.lt.ph       $k0,$sp
87        cmpgdu.eq.qb    $s3,$zero,$k0
88        cmpgdu.le.qb    $v1,$15,$s2
89        cmpgdu.lt.qb    $s0,$gp,$sp
90        cmpgu.eq.qb     $14,$s6,$s8
91        cmpgu.le.qb     $9,$a3,$s4
92        cmpgu.lt.qb     $sp,$at,$8
93        cmpu.eq.qb      $v0,$24
94        cmpu.le.qb      $s1,$a1
95        cmpu.lt.qb      $at,$a3
96        cvt.s.pl        $f30,$f1
97        cvt.s.pu        $f14,$f25
98        dmfc0           $10,c0_watchhi,2
99        dmfgc0          $gp,c0_perfcnt,6
100        dmt $k0
101        dmtc0           $15,c0_datalo
102        dmtgc0          $a2,c0_watchlo,2
103        dpa.w.ph        $ac1,$s7,$k0
104        dpaq_s.w.ph     $ac2,$a0,$13
105        dpaq_sa.l.w     $ac0,$a2,$14
106        dpaqx_s.w.ph    $ac3,$a0,$24
107        dpaqx_sa.w.ph   $ac1,$zero,$s5
108        dpau.h.qbl      $ac1,$10,$24
109        dpau.h.qbr      $ac1,$s7,$s6
110        dpax.w.ph       $ac3,$a0,$k0
111        dps.w.ph        $ac1,$a3,$a1
112        dpsq_s.w.ph     $ac0,$gp,$k0
113        dpsq_sa.l.w     $ac0,$a3,$15
114        dpsqx_s.w.ph    $ac3,$13,$a3
115        dpsqx_sa.w.ph   $ac3,$sp,$s2
116        dpsu.h.qbl      $ac2,$14,$10
117        dpsu.h.qbr      $ac2,$a1,$s6
118        dpsx.w.ph       $ac0,$s7,$gp
119        drorv           $at,$a1,$s7
120        dvpe            $s6
121        emt $8
122        evpe            $v0
123        extpdpv         $s6,$ac0,$s8
124        extpv           $13,$ac0,$14
125        extrv.w         $8,$ac3,$at
126        extrv_r.w       $8,$ac1,$s6
127        extrv_rs.w      $gp,$ac1,$s6
128        extrv_s.h       $s2,$ac1,$14
129        fclass.d        $w14,$w27
130        fclass.w        $w19,$w28
131        fexupl.d        $w10,$w29
132        fexupl.w        $w12,$w27
133        fexupr.d        $w31,$w15
134        fexupr.w        $w29,$w12
135        ffint_s.d       $w1,$w30
136        ffint_s.w       $w16,$w14
137        ffint_u.d       $w23,$w18
138        ffint_u.w       $w19,$w12
139        ffql.d          $w2,$w3
140        ffql.w          $w9,$w0
141        ffqr.d          $w25,$w24
142        ffqr.w          $w10,$w6
143        fill.b          $w9,$v1
144        fill.d          $w28,$8
145        fill.h          $w9,$8
146        fill.w          $w31,$15
147        flog2.d         $w12,$w16
148        flog2.w         $w19,$w23
149        fork            $s2,$8,$a0
150        frcp.d          $w12,$w4
151        frcp.w          $w30,$w8
152        frint.d         $w20,$w8
153        frint.w         $w11,$w29
154        frsqrt.d        $w29,$w2
155        frsqrt.w        $w9,$w8
156        fsqrt.d         $w3,$w1
157        fsqrt.w         $w5,$w15
158        ftint_s.d       $w31,$w26
159        ftint_s.w       $w27,$w14
160        ftint_u.d       $w5,$w31
161        ftint_u.w       $w12,$w29
162        ftrunc_s.d      $w4,$w22
163        ftrunc_s.w      $w24,$w7
164        ftrunc_u.d      $w20,$w25
165        ftrunc_u.w      $w7,$w26
166        insv            $s2,$at
167        iret
168        lbe $14,122($9)
169        lbue            $11,-108($10)
170        lbux            $9,$14($v0)
171        lhe $s6,219($v1)
172        lhue            $gp,118($11)
173        lhx $sp,$k0($15)
174        lle $gp,-237($ra)
175        lwe $ra,-145($14)
176        lwle            $11,-42($11)
177        lwre            $sp,-152($24)
178        lwx $12,$12($s4)
179        madd.ps         $f22,$f3,$f14,$f3
180        maq_s.w.phl     $ac2,$25,$11
181        maq_s.w.phr     $ac0,$10,$25
182        maq_sa.w.phl    $ac3,$a1,$v1
183        maq_sa.w.phr    $ac1,$at,$10
184        mfgc0           $s6,c0_datahi1
185        mflo            $9,$ac2
186        modsub          $a3,$12,$a3
187        mov.ps          $f22,$f17
188        movf.ps         $f10,$f28,$fcc6
189        movn.ps         $f31,$f31,$s3
190        movt.ps         $f20,$f25,$fcc2
191        movz.ps         $f18,$f17,$ra
192        msgn.qh         $v0,$v24,$v20
193        msgn.qh         $v12,$v21,$v0[1]
194        msub            $ac2,$sp,$14
195        msub.ps         $f12,$f14,$f29,$f17
196        msubu           $ac2,$a1,$24
197        mtc0            $9,c0_datahi1
198        mtgc0           $s4,$21,7
199        mthi            $v0,$ac1
200        mthlip          $a3,$ac0
201        mul.ph          $s4,$24,$s0
202        mul.ps          $f14,$f0,$f16
203        mul_s.ph        $10,$14,$15
204        muleq_s.w.phl   $11,$s4,$s4
205        muleq_s.w.phr   $s6,$a0,$s8
206        muleu_s.ph.qbl  $a2,$14,$8
207        muleu_s.ph.qbr  $a1,$ra,$9
208        mulq_rs.ph      $s2,$14,$15
209        mulq_rs.w       $at,$s4,$25
210        mulq_s.ph       $s0,$k1,$15
211        mulq_s.w        $9,$a3,$s0
212        mulsa.w.ph      $ac1,$s4,$s6
213        mulsaq_s.w.ph   $ac0,$ra,$s2
214        neg.ps          $f19,$f13
215        nloc.b          $w12,$w30
216        nloc.d          $w16,$w7
217        nloc.h          $w21,$w17
218        nloc.w          $w17,$w16
219        nlzc.b          $w12,$w7
220        nlzc.d          $w14,$w14
221        nlzc.h          $w24,$w24
222        nlzc.w          $w10,$w4
223        nmadd.ps        $f27,$f4,$f9,$f25
224        nmsub.ps        $f6,$f12,$f14,$f17
225        nor.v           $w20,$w20,$w15
226        or.v            $w13,$w23,$w12
227        packrl.ph       $ra,$24,$14
228        pcnt.b          $w30,$w15
229        pcnt.d          $w5,$w16
230        pcnt.h          $w20,$w24
231        pcnt.w          $w22,$w20
232        pick.ph         $ra,$a2,$gp
233        pick.qb         $11,$a0,$gp
234        pll.ps          $f25,$f9,$f30
235        plu.ps          $f1,$f26,$f29
236        preceq.w.phl    $s8,$gp
237        preceq.w.phr    $s5,$15
238        precequ.ph.qbl  $s7,$ra
239        precequ.ph.qbla $a0,$9
240        precequ.ph.qbr  $ra,$s3
241        precequ.ph.qbra $24,$8
242        preceu.ph.qbl   $sp,$8
243        preceu.ph.qbla  $s6,$11
244        preceu.ph.qbr   $gp,$s1
245        preceu.ph.qbra  $k1,$s0
246        precr.qb.ph     $v0,$12,$s8
247        precrq.ph.w     $14,$s8,$24
248        precrq.qb.ph    $a2,$12,$12
249        precrq_rs.ph.w  $a1,$k0,$a3
250        precrqu_s.qb.ph $zero,$gp,$s5
251        pul.ps          $f9,$f30,$f26
252        puu.ps          $f24,$f9,$f2
253        raddu.w.qb      $25,$s3
254        rdpgpr          $s3,$9
255        recip.d         $f19,$f6
256        recip.s         $f3,$f30
257        repl.ph         $at,-307
258        replv.ph        $v1,$s7
259        replv.qb        $25,$12
260        rorv            $13,$a3,$s5
261        rsqrt.d         $f3,$f28
262        rsqrt.s         $f4,$f8
263        sbe $s7,33($s1)
264        sce $sp,189($10)
265        she $24,105($v0)
266        shilo           $ac1,26
267        shilov          $ac2,$10
268        shllv.ph        $10,$s0,$s0
269        shllv.qb        $gp,$v1,$zero
270        shllv_s.ph      $k1,$at,$13
271        shllv_s.w       $s1,$ra,$k0
272        shrav.ph        $25,$s2,$s1
273        shrav.qb        $zero,$24,$11
274        shrav_r.ph      $s3,$11,$25
275        shrav_r.qb      $a0,$sp,$s5
276        shrav_r.w       $s7,$s4,$s6
277        shrlv.ph        $14,$10,$9
278        shrlv.qb        $a2,$s2,$11
279        sub.ps          $f5,$f14,$f26
280        subq.ph         $ra,$9,$s8
281        subq_s.ph       $13,$s8,$s5
282        subq_s.w        $k1,$a2,$a3
283        subqh.ph        $10,$at,$9
284        subqh.w         $v0,$a2,$zero
285        subqh_r.ph      $a0,$12,$s6
286        subqh_r.w       $10,$a2,$gp
287        subu.ph         $9,$s6,$s4
288        subu.qb         $s6,$a2,$s6
289        subu_s.ph       $v1,$a1,$s3
290        subu_s.qb       $s1,$at,$ra
291        subuh.qb        $zero,$gp,$gp
292        subuh_r.qb      $s4,$s8,$s6
293        swe $24,94($k0)
294        swle            $v1,-209($gp)
295        swre            $k0,-202($s2)
296        tlbginv
297        tlbginvf
298        tlbgp
299        tlbgr
300        tlbgwi
301        tlbgwr
302        tlbinv
303        tlbinvf
304        wrpgpr          $zero,$13
305        xor.v           $w20,$w21,$w30
306        yield           $v1,$s0
307