1# RUN: llvm-mc %s -triple=mipsel-unknown-linux -show-encoding -mcpu=mips32r2 -mattr=+msa -arch=mips | FileCheck %s
2#
3# RUN: llvm-mc %s -triple=mipsel-unknown-linux -mcpu=mips32r2 -mattr=+msa -arch=mips -filetype=obj -o - | llvm-objdump -d -triple=mipsel-unknown-linux -mattr=+msa -arch=mips - | FileCheck %s -check-prefix=CHECKOBJDUMP
4#
5# CHECK:        fill.b  $w30, $9                # encoding: [0x7b,0x00,0x4f,0x9e]
6# CHECK:        fill.h  $w31, $23               # encoding: [0x7b,0x01,0xbf,0xde]
7# CHECK:        fill.w  $w16, $24               # encoding: [0x7b,0x02,0xc4,0x1e]
8# CHECK:        nloc.b  $w21, $w0               # encoding: [0x7b,0x08,0x05,0x5e]
9# CHECK:        nloc.h  $w18, $w31              # encoding: [0x7b,0x09,0xfc,0x9e]
10# CHECK:        nloc.w  $w2, $w23               # encoding: [0x7b,0x0a,0xb8,0x9e]
11# CHECK:        nloc.d  $w4, $w10               # encoding: [0x7b,0x0b,0x51,0x1e]
12# CHECK:        nlzc.b  $w31, $w2               # encoding: [0x7b,0x0c,0x17,0xde]
13# CHECK:        nlzc.h  $w27, $w22              # encoding: [0x7b,0x0d,0xb6,0xde]
14# CHECK:        nlzc.w  $w10, $w29              # encoding: [0x7b,0x0e,0xea,0x9e]
15# CHECK:        nlzc.d  $w25, $w9               # encoding: [0x7b,0x0f,0x4e,0x5e]
16# CHECK:        pcnt.b  $w20, $w18              # encoding: [0x7b,0x04,0x95,0x1e]
17# CHECK:        pcnt.h  $w0, $w8                # encoding: [0x7b,0x05,0x40,0x1e]
18# CHECK:        pcnt.w  $w23, $w9               # encoding: [0x7b,0x06,0x4d,0xde]
19# CHECK:        pcnt.d  $w21, $w24              # encoding: [0x7b,0x07,0xc5,0x5e]
20
21# CHECKOBJDUMP:        fill.b  $w30, $9
22# CHECKOBJDUMP:        fill.h  $w31, $23
23# CHECKOBJDUMP:        fill.w  $w16, $24
24# CHECKOBJDUMP:        nloc.b  $w21, $w0
25# CHECKOBJDUMP:        nloc.h  $w18, $w31
26# CHECKOBJDUMP:        nloc.w  $w2, $w23
27# CHECKOBJDUMP:        nloc.d  $w4, $w10
28# CHECKOBJDUMP:        nlzc.b  $w31, $w2
29# CHECKOBJDUMP:        nlzc.h  $w27, $w22
30# CHECKOBJDUMP:        nlzc.w  $w10, $w29
31# CHECKOBJDUMP:        nlzc.d  $w25, $w9
32# CHECKOBJDUMP:        pcnt.b  $w20, $w18
33# CHECKOBJDUMP:        pcnt.h  $w0, $w8
34# CHECKOBJDUMP:        pcnt.w  $w23, $w9
35# CHECKOBJDUMP:        pcnt.d  $w21, $w24
36
37                fill.b  $w30, $9
38                fill.h  $w31, $23
39                fill.w  $w16, $24
40                nloc.b  $w21, $w0
41                nloc.h  $w18, $w31
42                nloc.w  $w2, $w23
43                nloc.d  $w4, $w10
44                nlzc.b  $w31, $w2
45                nlzc.h  $w27, $w22
46                nlzc.w  $w10, $w29
47                nlzc.d  $w25, $w9
48                pcnt.b  $w20, $w18
49                pcnt.h  $w0, $w8
50                pcnt.w  $w23, $w9
51                pcnt.d  $w21, $w24
52