[mips] Move disassembler tests (Mips MSA test_2r, test_2rf, test_3r, test_3rf) into

correct folder.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208584 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Matheus Almeida 2014-05-12 16:03:20 +00:00
parent e44de6afea
commit 5e3662ae95
8 changed files with 379 additions and 391 deletions

View File

@ -0,0 +1,17 @@
# RUN: llvm-mc --disassemble %s -triple=mips-unknown-linux -mcpu=mips32r2 -mattr=+msa | FileCheck %s
0x7b 0x00 0x4f 0x9e # CHECK: fill.b $w30, $9
0x7b 0x01 0xbf 0xde # CHECK: fill.h $w31, $23
0x7b 0x02 0xc4 0x1e # CHECK: fill.w $w16, $24
0x7b 0x08 0x05 0x5e # CHECK: nloc.b $w21, $w0
0x7b 0x09 0xfc 0x9e # CHECK: nloc.h $w18, $w31
0x7b 0x0a 0xb8 0x9e # CHECK: nloc.w $w2, $w23
0x7b 0x0b 0x51 0x1e # CHECK: nloc.d $w4, $w10
0x7b 0x0c 0x17 0xde # CHECK: nlzc.b $w31, $w2
0x7b 0x0d 0xb6 0xde # CHECK: nlzc.h $w27, $w22
0x7b 0x0e 0xea 0x9e # CHECK: nlzc.w $w10, $w29
0x7b 0x0f 0x4e 0x5e # CHECK: nlzc.d $w25, $w9
0x7b 0x04 0x95 0x1e # CHECK: pcnt.b $w20, $w18
0x7b 0x05 0x40 0x1e # CHECK: pcnt.h $w0, $w8
0x7b 0x06 0x4d 0xde # CHECK: pcnt.w $w23, $w9
0x7b 0x07 0xc5 0x5e # CHECK: pcnt.d $w21, $w24

View File

@ -0,0 +1,34 @@
# RUN: llvm-mc --disassemble %s -triple=mips-unknown-linux -mcpu=mips32r2 -mattr=+msa | FileCheck %s
0x7b 0x20 0x66 0x9e # CHECK: fclass.w $w26, $w12
0x7b 0x21 0x8e 0x1e # CHECK: fclass.d $w24, $w17
0x7b 0x30 0x02 0x1e # CHECK: fexupl.w $w8, $w0
0x7b 0x31 0xec 0x5e # CHECK: fexupl.d $w17, $w29
0x7b 0x32 0x23 0x5e # CHECK: fexupr.w $w13, $w4
0x7b 0x33 0x11 0x5e # CHECK: fexupr.d $w5, $w2
0x7b 0x3c 0xed 0x1e # CHECK: ffint_s.w $w20, $w29
0x7b 0x3d 0x7b 0x1e # CHECK: ffint_s.d $w12, $w15
0x7b 0x3e 0xd9 0xde # CHECK: ffint_u.w $w7, $w27
0x7b 0x3f 0x84 0xde # CHECK: ffint_u.d $w19, $w16
0x7b 0x34 0x6f 0xde # CHECK: ffql.w $w31, $w13
0x7b 0x35 0x6b 0x1e # CHECK: ffql.d $w12, $w13
0x7b 0x36 0xf6 0xde # CHECK: ffqr.w $w27, $w30
0x7b 0x37 0x7f 0x9e # CHECK: ffqr.d $w30, $w15
0x7b 0x2e 0xfe 0x5e # CHECK: flog2.w $w25, $w31
0x7b 0x2f 0x54 0x9e # CHECK: flog2.d $w18, $w10
0x7b 0x2c 0x79 0xde # CHECK: frint.w $w7, $w15
0x7b 0x2d 0xb5 0x5e # CHECK: frint.d $w21, $w22
0x7b 0x2a 0x04 0xde # CHECK: frcp.w $w19, $w0
0x7b 0x2b 0x71 0x1e # CHECK: frcp.d $w4, $w14
0x7b 0x28 0x8b 0x1e # CHECK: frsqrt.w $w12, $w17
0x7b 0x29 0x5d 0xde # CHECK: frsqrt.d $w23, $w11
0x7b 0x26 0x58 0x1e # CHECK: fsqrt.w $w0, $w11
0x7b 0x27 0x63 0xde # CHECK: fsqrt.d $w15, $w12
0x7b 0x38 0x2f 0x9e # CHECK: ftint_s.w $w30, $w5
0x7b 0x39 0xb9 0x5e # CHECK: ftint_s.d $w5, $w23
0x7b 0x3a 0x75 0x1e # CHECK: ftint_u.w $w20, $w14
0x7b 0x3b 0xad 0xde # CHECK: ftint_u.d $w23, $w21
0x7b 0x22 0x8f 0x5e # CHECK: ftrunc_s.w $w29, $w17
0x7b 0x23 0xdb 0x1e # CHECK: ftrunc_s.d $w12, $w27
0x7b 0x24 0x7c 0x5e # CHECK: ftrunc_u.w $w17, $w15
0x7b 0x25 0xd9 0x5e # CHECK: ftrunc_u.d $w5, $w27

View File

@ -0,0 +1,244 @@
# RUN: llvm-mc --disassemble %s -triple=mips-unknown-linux -mcpu=mips32r2 -mattr=+msa | FileCheck %s
0x78 0x04 0x4e 0x90 # CHECK: add_a.b $w26, $w9, $w4
0x78 0x3f 0xdd 0xd0 # CHECK: add_a.h $w23, $w27, $w31
0x78 0x56 0x32 0xd0 # CHECK: add_a.w $w11, $w6, $w22
0x78 0x60 0x51 0x90 # CHECK: add_a.d $w6, $w10, $w0
0x78 0x93 0xc4 0xd0 # CHECK: adds_a.b $w19, $w24, $w19
0x78 0xa4 0x36 0x50 # CHECK: adds_a.h $w25, $w6, $w4
0x78 0xdb 0x8e 0x50 # CHECK: adds_a.w $w25, $w17, $w27
0x78 0xfa 0x93 0xd0 # CHECK: adds_a.d $w15, $w18, $w26
0x79 0x13 0x5f 0x50 # CHECK: adds_s.b $w29, $w11, $w19
0x79 0x3a 0xb9 0x50 # CHECK: adds_s.h $w5, $w23, $w26
0x79 0x4d 0x74 0x10 # CHECK: adds_s.w $w16, $w14, $w13
0x79 0x7c 0x70 0x90 # CHECK: adds_s.d $w2, $w14, $w28
0x79 0x8e 0x88 0xd0 # CHECK: adds_u.b $w3, $w17, $w14
0x79 0xa4 0xf2 0x90 # CHECK: adds_u.h $w10, $w30, $w4
0x79 0xd4 0x93 0xd0 # CHECK: adds_u.w $w15, $w18, $w20
0x79 0xe9 0x57 0x90 # CHECK: adds_u.d $w30, $w10, $w9
0x78 0x15 0xa6 0x0e # CHECK: addv.b $w24, $w20, $w21
0x78 0x3b 0x69 0x0e # CHECK: addv.h $w4, $w13, $w27
0x78 0x4e 0x5c 0xce # CHECK: addv.w $w19, $w11, $w14
0x78 0x7f 0xa8 0x8e # CHECK: addv.d $w2, $w21, $w31
0x7a 0x03 0x85 0xd1 # CHECK: asub_s.b $w23, $w16, $w3
0x7a 0x39 0x8d 0x91 # CHECK: asub_s.h $w22, $w17, $w25
0x7a 0x49 0x0e 0x11 # CHECK: asub_s.w $w24, $w1, $w9
0x7a 0x6c 0x63 0x51 # CHECK: asub_s.d $w13, $w12, $w12
0x7a 0x8b 0xea 0x91 # CHECK: asub_u.b $w10, $w29, $w11
0x7a 0xaf 0x4c 0x91 # CHECK: asub_u.h $w18, $w9, $w15
0x7a 0xdf 0x9a 0x91 # CHECK: asub_u.w $w10, $w19, $w31
0x7a 0xe0 0x54 0x51 # CHECK: asub_u.d $w17, $w10, $w0
0x7a 0x01 0x28 0x90 # CHECK: ave_s.b $w2, $w5, $w1
0x7a 0x29 0x9c 0x10 # CHECK: ave_s.h $w16, $w19, $w9
0x7a 0x45 0xfc 0x50 # CHECK: ave_s.w $w17, $w31, $w5
0x7a 0x6a 0xce 0xd0 # CHECK: ave_s.d $w27, $w25, $w10
0x7a 0x89 0x9c 0x10 # CHECK: ave_u.b $w16, $w19, $w9
0x7a 0xab 0xe7 0x10 # CHECK: ave_u.h $w28, $w28, $w11
0x7a 0xcb 0x62 0xd0 # CHECK: ave_u.w $w11, $w12, $w11
0x7a 0xfc 0x9f 0x90 # CHECK: ave_u.d $w30, $w19, $w28
0x7b 0x02 0x86 0x90 # CHECK: aver_s.b $w26, $w16, $w2
0x7b 0x3b 0xdf 0xd0 # CHECK: aver_s.h $w31, $w27, $w27
0x7b 0x59 0x97 0x10 # CHECK: aver_s.w $w28, $w18, $w25
0x7b 0x7b 0xaf 0x50 # CHECK: aver_s.d $w29, $w21, $w27
0x7b 0x83 0xd7 0x50 # CHECK: aver_u.b $w29, $w26, $w3
0x7b 0xa9 0x94 0x90 # CHECK: aver_u.h $w18, $w18, $w9
0x7b 0xdd 0xcc 0x50 # CHECK: aver_u.w $w17, $w25, $w29
0x7b 0xf3 0xb5 0x90 # CHECK: aver_u.d $w22, $w22, $w19
0x79 0x9d 0x78 0x8d # CHECK: bclr.b $w2, $w15, $w29
0x79 0xbc 0xac 0x0d # CHECK: bclr.h $w16, $w21, $w28
0x79 0xc9 0x14 0xcd # CHECK: bclr.w $w19, $w2, $w9
0x79 0xe4 0xfe 0xcd # CHECK: bclr.d $w27, $w31, $w4
0x7b 0x18 0x81 0x4d # CHECK: binsl.b $w5, $w16, $w24
0x7b 0x2a 0x2f 0x8d # CHECK: binsl.h $w30, $w5, $w10
0x7b 0x4d 0x7b 0x8d # CHECK: binsl.w $w14, $w15, $w13
0x7b 0x6c 0xa5 0xcd # CHECK: binsl.d $w23, $w20, $w12
0x7b 0x82 0x5d 0x8d # CHECK: binsr.b $w22, $w11, $w2
0x7b 0xa6 0xd0 0x0d # CHECK: binsr.h $w0, $w26, $w6
0x7b 0xdc 0x1e 0x8d # CHECK: binsr.w $w26, $w3, $w28
0x7b 0xf5 0x00 0x0d # CHECK: binsr.d $w0, $w0, $w21
0x7a 0x98 0x58 0x0d # CHECK: bneg.b $w0, $w11, $w24
0x7a 0xa4 0x87 0x0d # CHECK: bneg.h $w28, $w16, $w4
0x7a 0xd3 0xd0 0xcd # CHECK: bneg.w $w3, $w26, $w19
0x7a 0xef 0xeb 0x4d # CHECK: bneg.d $w13, $w29, $w15
0x7a 0x1f 0x2f 0xcd # CHECK: bset.b $w31, $w5, $w31
0x7a 0x26 0x63 0x8d # CHECK: bset.h $w14, $w12, $w6
0x7a 0x4c 0x4f 0xcd # CHECK: bset.w $w31, $w9, $w12
0x7a 0x65 0xb1 0x4d # CHECK: bset.d $w5, $w22, $w5
0x78 0x12 0xff 0xcf # CHECK: ceq.b $w31, $w31, $w18
0x78 0x29 0xda 0x8f # CHECK: ceq.h $w10, $w27, $w9
0x78 0x4e 0x2a 0x4f # CHECK: ceq.w $w9, $w5, $w14
0x78 0x60 0x89 0x4f # CHECK: ceq.d $w5, $w17, $w0
0x7a 0x09 0x25 0xcf # CHECK: cle_s.b $w23, $w4, $w9
0x7a 0x33 0xdd 0x8f # CHECK: cle_s.h $w22, $w27, $w19
0x7a 0x4a 0xd7 0x8f # CHECK: cle_s.w $w30, $w26, $w10
0x7a 0x6a 0x2c 0x8f # CHECK: cle_s.d $w18, $w5, $w10
0x7a 0x80 0xc8 0x4f # CHECK: cle_u.b $w1, $w25, $w0
0x7a 0xbd 0x01 0xcf # CHECK: cle_u.h $w7, $w0, $w29
0x7a 0xc1 0x96 0x4f # CHECK: cle_u.w $w25, $w18, $w1
0x7a 0xfe 0x01 0x8f # CHECK: cle_u.d $w6, $w0, $w30
0x79 0x15 0x16 0x4f # CHECK: clt_s.b $w25, $w2, $w21
0x79 0x29 0x98 0x8f # CHECK: clt_s.h $w2, $w19, $w9
0x79 0x50 0x45 0xcf # CHECK: clt_s.w $w23, $w8, $w16
0x79 0x6c 0xf1 0xcf # CHECK: clt_s.d $w7, $w30, $w12
0x79 0x8d 0xf8 0x8f # CHECK: clt_u.b $w2, $w31, $w13
0x79 0xb7 0xfc 0x0f # CHECK: clt_u.h $w16, $w31, $w23
0x79 0xc9 0xc0 0xcf # CHECK: clt_u.w $w3, $w24, $w9
0x79 0xe1 0x01 0xcf # CHECK: clt_u.d $w7, $w0, $w1
0x7a 0x12 0x1f 0x52 # CHECK: div_s.b $w29, $w3, $w18
0x7a 0x2d 0x84 0x52 # CHECK: div_s.h $w17, $w16, $w13
0x7a 0x5e 0xc9 0x12 # CHECK: div_s.w $w4, $w25, $w30
0x7a 0x74 0x4f 0xd2 # CHECK: div_s.d $w31, $w9, $w20
0x7a 0x8a 0xe9 0x92 # CHECK: div_u.b $w6, $w29, $w10
0x7a 0xae 0xae 0x12 # CHECK: div_u.h $w24, $w21, $w14
0x7a 0xd9 0x77 0x52 # CHECK: div_u.w $w29, $w14, $w25
0x7a 0xf5 0x0f 0xd2 # CHECK: div_u.d $w31, $w1, $w21
0x78 0x39 0xb5 0xd3 # CHECK: dotp_s.h $w23, $w22, $w25
0x78 0x45 0x75 0x13 # CHECK: dotp_s.w $w20, $w14, $w5
0x78 0x76 0x14 0x53 # CHECK: dotp_s.d $w17, $w2, $w22
0x78 0xa6 0x13 0x53 # CHECK: dotp_u.h $w13, $w2, $w6
0x78 0xd5 0xb3 0xd3 # CHECK: dotp_u.w $w15, $w22, $w21
0x78 0xfa 0x81 0x13 # CHECK: dotp_u.d $w4, $w16, $w26
0x79 0x36 0xe0 0x53 # CHECK: dpadd_s.h $w1, $w28, $w22
0x79 0x4c 0x0a 0x93 # CHECK: dpadd_s.w $w10, $w1, $w12
0x79 0x7b 0xa8 0xd3 # CHECK: dpadd_s.d $w3, $w21, $w27
0x79 0xb4 0x2c 0x53 # CHECK: dpadd_u.h $w17, $w5, $w20
0x79 0xd0 0x46 0x13 # CHECK: dpadd_u.w $w24, $w8, $w16
0x79 0xf0 0xeb 0xd3 # CHECK: dpadd_u.d $w15, $w29, $w16
0x7a 0x2c 0x59 0x13 # CHECK: dpsub_s.h $w4, $w11, $w12
0x7a 0x46 0x39 0x13 # CHECK: dpsub_s.w $w4, $w7, $w6
0x7a 0x7c 0x67 0xd3 # CHECK: dpsub_s.d $w31, $w12, $w28
0x7a 0xb1 0xc9 0x13 # CHECK: dpsub_u.h $w4, $w25, $w17
0x7a 0xd0 0xcc 0xd3 # CHECK: dpsub_u.w $w19, $w25, $w16
0x7a 0xfa 0x51 0xd3 # CHECK: dpsub_u.d $w7, $w10, $w26
0x7a 0x22 0xc7 0x15 # CHECK: hadd_s.h $w28, $w24, $w2
0x7a 0x4b 0x8e 0x15 # CHECK: hadd_s.w $w24, $w17, $w11
0x7a 0x74 0x7c 0x55 # CHECK: hadd_s.d $w17, $w15, $w20
0x7a 0xb1 0xeb 0x15 # CHECK: hadd_u.h $w12, $w29, $w17
0x7a 0xc6 0x2a 0x55 # CHECK: hadd_u.w $w9, $w5, $w6
0x7a 0xe6 0xa0 0x55 # CHECK: hadd_u.d $w1, $w20, $w6
0x7b 0x3d 0x74 0x15 # CHECK: hsub_s.h $w16, $w14, $w29
0x7b 0x4b 0x6a 0x55 # CHECK: hsub_s.w $w9, $w13, $w11
0x7b 0x6e 0x97 0x95 # CHECK: hsub_s.d $w30, $w18, $w14
0x7b 0xae 0x61 0xd5 # CHECK: hsub_u.h $w7, $w12, $w14
0x7b 0xc5 0x2d 0x55 # CHECK: hsub_u.w $w21, $w5, $w5
0x7b 0xff 0x62 0xd5 # CHECK: hsub_u.d $w11, $w12, $w31
0x7b 0x1e 0x84 0x94 # CHECK: ilvev.b $w18, $w16, $w30
0x7b 0x2d 0x03 0x94 # CHECK: ilvev.h $w14, $w0, $w13
0x7b 0x56 0xcb 0x14 # CHECK: ilvev.w $w12, $w25, $w22
0x7b 0x63 0xdf 0x94 # CHECK: ilvev.d $w30, $w27, $w3
0x7a 0x15 0x1f 0x54 # CHECK: ilvl.b $w29, $w3, $w21
0x7a 0x31 0x56 0xd4 # CHECK: ilvl.h $w27, $w10, $w17
0x7a 0x40 0x09 0x94 # CHECK: ilvl.w $w6, $w1, $w0
0x7a 0x78 0x80 0xd4 # CHECK: ilvl.d $w3, $w16, $w24
0x7b 0x94 0x2a 0xd4 # CHECK: ilvod.b $w11, $w5, $w20
0x7b 0xbf 0x6c 0x94 # CHECK: ilvod.h $w18, $w13, $w31
0x7b 0xd8 0x87 0x54 # CHECK: ilvod.w $w29, $w16, $w24
0x7b 0xfd 0x65 0x94 # CHECK: ilvod.d $w22, $w12, $w29
0x7a 0x86 0xf1 0x14 # CHECK: ilvr.b $w4, $w30, $w6
0x7a 0xbd 0x9f 0x14 # CHECK: ilvr.h $w28, $w19, $w29
0x7a 0xd5 0xa4 0x94 # CHECK: ilvr.w $w18, $w20, $w21
0x7a 0xec 0xf5 0xd4 # CHECK: ilvr.d $w23, $w30, $w12
0x78 0x9d 0xfc 0x52 # CHECK: maddv.b $w17, $w31, $w29
0x78 0xa9 0xc1 0xd2 # CHECK: maddv.h $w7, $w24, $w9
0x78 0xd4 0xb5 0x92 # CHECK: maddv.w $w22, $w22, $w20
0x78 0xf4 0xd7 0x92 # CHECK: maddv.d $w30, $w26, $w20
0x7b 0x17 0x5d 0xce # CHECK: max_a.b $w23, $w11, $w23
0x7b 0x3e 0x2d 0x0e # CHECK: max_a.h $w20, $w5, $w30
0x7b 0x5e 0x91 0xce # CHECK: max_a.w $w7, $w18, $w30
0x7b 0x7f 0x42 0x0e # CHECK: max_a.d $w8, $w8, $w31
0x79 0x13 0x0a 0x8e # CHECK: max_s.b $w10, $w1, $w19
0x79 0x31 0xeb 0xce # CHECK: max_s.h $w15, $w29, $w17
0x79 0x4e 0xeb 0xce # CHECK: max_s.w $w15, $w29, $w14
0x79 0x63 0xc6 0x4e # CHECK: max_s.d $w25, $w24, $w3
0x79 0x85 0xc3 0x0e # CHECK: max_u.b $w12, $w24, $w5
0x79 0xa7 0x31 0x4e # CHECK: max_u.h $w5, $w6, $w7
0x79 0xc7 0x24 0x0e # CHECK: max_u.w $w16, $w4, $w7
0x79 0xf8 0x66 0x8e # CHECK: max_u.d $w26, $w12, $w24
0x7b 0x81 0xd1 0x0e # CHECK: min_a.b $w4, $w26, $w1
0x7b 0xbf 0x6b 0x0e # CHECK: min_a.h $w12, $w13, $w31
0x7b 0xc0 0xa7 0x0e # CHECK: min_a.w $w28, $w20, $w0
0x7b 0xf3 0xa3 0x0e # CHECK: min_a.d $w12, $w20, $w19
0x7a 0x0e 0x1c 0xce # CHECK: min_s.b $w19, $w3, $w14
0x7a 0x28 0xae 0xce # CHECK: min_s.h $w27, $w21, $w8
0x7a 0x5e 0x70 0x0e # CHECK: min_s.w $w0, $w14, $w30
0x7a 0x75 0x41 0x8e # CHECK: min_s.d $w6, $w8, $w21
0x7a 0x88 0xd5 0x8e # CHECK: min_u.b $w22, $w26, $w8
0x7a 0xac 0xd9 0xce # CHECK: min_u.h $w7, $w27, $w12
0x7a 0xce 0xa2 0x0e # CHECK: min_u.w $w8, $w20, $w14
0x7a 0xef 0x76 0x8e # CHECK: min_u.d $w26, $w14, $w15
0x7b 0x1a 0x0c 0x92 # CHECK: mod_s.b $w18, $w1, $w26
0x7b 0x3c 0xf7 0xd2 # CHECK: mod_s.h $w31, $w30, $w28
0x7b 0x4d 0x30 0x92 # CHECK: mod_s.w $w2, $w6, $w13
0x7b 0x76 0xdd 0x52 # CHECK: mod_s.d $w21, $w27, $w22
0x7b 0x8d 0x3c 0x12 # CHECK: mod_u.b $w16, $w7, $w13
0x7b 0xa7 0x46 0x12 # CHECK: mod_u.h $w24, $w8, $w7
0x7b 0xd1 0x17 0x92 # CHECK: mod_u.w $w30, $w2, $w17
0x7b 0xf9 0x17 0xd2 # CHECK: mod_u.d $w31, $w2, $w25
0x79 0x0c 0x2b 0x92 # CHECK: msubv.b $w14, $w5, $w12
0x79 0x3e 0x39 0x92 # CHECK: msubv.h $w6, $w7, $w30
0x79 0x55 0x13 0x52 # CHECK: msubv.w $w13, $w2, $w21
0x79 0x7b 0x74 0x12 # CHECK: msubv.d $w16, $w14, $w27
0x78 0x0d 0x1d 0x12 # CHECK: mulv.b $w20, $w3, $w13
0x78 0x2e 0xd6 0xd2 # CHECK: mulv.h $w27, $w26, $w14
0x78 0x43 0xea 0x92 # CHECK: mulv.w $w10, $w29, $w3
0x78 0x7d 0x99 0xd2 # CHECK: mulv.d $w7, $w19, $w29
0x79 0x07 0xd9 0x54 # CHECK: pckev.b $w5, $w27, $w7
0x79 0x3b 0x20 0x54 # CHECK: pckev.h $w1, $w4, $w27
0x79 0x40 0xa7 0x94 # CHECK: pckev.w $w30, $w20, $w0
0x79 0x6f 0x09 0x94 # CHECK: pckev.d $w6, $w1, $w15
0x79 0x9e 0xe4 0x94 # CHECK: pckod.b $w18, $w28, $w30
0x79 0xa8 0x2e 0x94 # CHECK: pckod.h $w26, $w5, $w8
0x79 0xc2 0x22 0x54 # CHECK: pckod.w $w9, $w4, $w2
0x79 0xf4 0xb7 0x94 # CHECK: pckod.d $w30, $w22, $w20
0x78 0x0c 0xb9 0x54 # CHECK: sld.b $w5, $w23[$12]
0x78 0x23 0xb8 0x54 # CHECK: sld.h $w1, $w23[$3]
0x78 0x49 0x45 0x14 # CHECK: sld.w $w20, $w8[$9]
0x78 0x7e 0xb9 0xd4 # CHECK: sld.d $w7, $w23[$fp]
0x78 0x11 0x00 0xcd # CHECK: sll.b $w3, $w0, $w17
0x78 0x23 0xdc 0x4d # CHECK: sll.h $w17, $w27, $w3
0x78 0x46 0x3c 0x0d # CHECK: sll.w $w16, $w7, $w6
0x78 0x7a 0x02 0x4d # CHECK: sll.d $w9, $w0, $w26
0x78 0x81 0x0f 0x14 # CHECK: splat.b $w28, $w1[$1]
0x78 0xab 0x58 0x94 # CHECK: splat.h $w2, $w11[$11]
0x78 0xcb 0x05 0x94 # CHECK: splat.w $w22, $w0[$11]
0x78 0xe2 0x00 0x14 # CHECK: splat.d $w0, $w0[$2]
0x78 0x91 0x27 0x0d # CHECK: sra.b $w28, $w4, $w17
0x78 0xa3 0x4b 0x4d # CHECK: sra.h $w13, $w9, $w3
0x78 0xd3 0xae 0xcd # CHECK: sra.w $w27, $w21, $w19
0x78 0xf7 0x47 0x8d # CHECK: sra.d $w30, $w8, $w23
0x78 0x92 0x94 0xd5 # CHECK: srar.b $w19, $w18, $w18
0x78 0xa8 0xb9 0xd5 # CHECK: srar.h $w7, $w23, $w8
0x78 0xc2 0x60 0x55 # CHECK: srar.w $w1, $w12, $w2
0x78 0xee 0x3d 0x55 # CHECK: srar.d $w21, $w7, $w14
0x79 0x13 0x1b 0x0d # CHECK: srl.b $w12, $w3, $w19
0x79 0x34 0xfd 0xcd # CHECK: srl.h $w23, $w31, $w20
0x79 0x4b 0xdc 0x8d # CHECK: srl.w $w18, $w27, $w11
0x79 0x7a 0x60 0xcd # CHECK: srl.d $w3, $w12, $w26
0x79 0x0b 0xab 0xd5 # CHECK: srlr.b $w15, $w21, $w11
0x79 0x33 0x6d 0x55 # CHECK: srlr.h $w21, $w13, $w19
0x79 0x43 0xf1 0x95 # CHECK: srlr.w $w6, $w30, $w3
0x79 0x6e 0x10 0x55 # CHECK: srlr.d $w1, $w2, $w14
0x78 0x01 0x7e 0x51 # CHECK: subs_s.b $w25, $w15, $w1
0x78 0x36 0xcf 0x11 # CHECK: subs_s.h $w28, $w25, $w22
0x78 0x55 0x62 0x91 # CHECK: subs_s.w $w10, $w12, $w21
0x78 0x72 0xa1 0x11 # CHECK: subs_s.d $w4, $w20, $w18
0x78 0x99 0x35 0x51 # CHECK: subs_u.b $w21, $w6, $w25
0x78 0xa7 0x50 0xd1 # CHECK: subs_u.h $w3, $w10, $w7
0x78 0xca 0x7a 0x51 # CHECK: subs_u.w $w9, $w15, $w10
0x78 0xea 0x99 0xd1 # CHECK: subs_u.d $w7, $w19, $w10
0x79 0x0c 0x39 0x91 # CHECK: subsus_u.b $w6, $w7, $w12
0x79 0x33 0xe9 0x91 # CHECK: subsus_u.h $w6, $w29, $w19
0x79 0x47 0x79 0xd1 # CHECK: subsus_u.w $w7, $w15, $w7
0x79 0x6f 0x1a 0x51 # CHECK: subsus_u.d $w9, $w3, $w15
0x79 0x9f 0x1d 0x91 # CHECK: subsuu_s.b $w22, $w3, $w31
0x79 0xb6 0xbc 0xd1 # CHECK: subsuu_s.h $w19, $w23, $w22
0x79 0xcd 0x52 0x51 # CHECK: subsuu_s.w $w9, $w10, $w13
0x79 0xe0 0x31 0x51 # CHECK: subsuu_s.d $w5, $w6, $w0
0x78 0x93 0x69 0x8e # CHECK: subv.b $w6, $w13, $w19
0x78 0xac 0xc9 0x0e # CHECK: subv.h $w4, $w25, $w12
0x78 0xcb 0xde 0xce # CHECK: subv.w $w27, $w27, $w11
0x78 0xea 0xc2 0x4e # CHECK: subv.d $w9, $w24, $w10
0x78 0x05 0x80 0xd5 # CHECK: vshf.b $w3, $w16, $w5
0x78 0x28 0x9d 0x15 # CHECK: vshf.h $w20, $w19, $w8
0x78 0x59 0xf4 0x15 # CHECK: vshf.w $w16, $w30, $w25
0x78 0x6f 0x5c 0xd5 # CHECK: vshf.d $w19, $w11, $w15

View File

@ -0,0 +1,84 @@
# RUN: llvm-mc --disassemble %s -triple=mips-unknown-linux -mcpu=mips32r2 -mattr=+msa | FileCheck %s
0x78 0x1c 0x9f 0x1b # CHECK: fadd.w $w28, $w19, $w28
0x78 0x3d 0x13 0x5b # CHECK: fadd.d $w13, $w2, $w29
0x78 0x19 0x5b 0x9a # CHECK: fcaf.w $w14, $w11, $w25
0x78 0x33 0x08 0x5a # CHECK: fcaf.d $w1, $w1, $w19
0x78 0x90 0xb8 0x5a # CHECK: fceq.w $w1, $w23, $w16
0x78 0xb0 0x40 0x1a # CHECK: fceq.d $w0, $w8, $w16
0x79 0x98 0x4c 0x1a # CHECK: fcle.w $w16, $w9, $w24
0x79 0xa1 0x76 0xda # CHECK: fcle.d $w27, $w14, $w1
0x79 0x08 0x47 0x1a # CHECK: fclt.w $w28, $w8, $w8
0x79 0x2b 0xcf 0x9a # CHECK: fclt.d $w30, $w25, $w11
0x78 0xd7 0x90 0x9c # CHECK: fcne.w $w2, $w18, $w23
0x78 0xef 0xa3 0x9c # CHECK: fcne.d $w14, $w20, $w15
0x78 0x59 0x92 0x9c # CHECK: fcor.w $w10, $w18, $w25
0x78 0x6b 0xcc 0x5c # CHECK: fcor.d $w17, $w25, $w11
0x78 0xd5 0x13 0x9a # CHECK: fcueq.w $w14, $w2, $w21
0x78 0xe7 0x1f 0x5a # CHECK: fcueq.d $w29, $w3, $w7
0x79 0xc3 0x2c 0x5a # CHECK: fcule.w $w17, $w5, $w3
0x79 0xfe 0x0f 0xda # CHECK: fcule.d $w31, $w1, $w30
0x79 0x49 0xc9 0x9a # CHECK: fcult.w $w6, $w25, $w9
0x79 0x71 0x46 0xda # CHECK: fcult.d $w27, $w8, $w17
0x78 0x48 0xa1 0x1a # CHECK: fcun.w $w4, $w20, $w8
0x78 0x63 0x5f 0x5a # CHECK: fcun.d $w29, $w11, $w3
0x78 0x93 0x93 0x5c # CHECK: fcune.w $w13, $w18, $w19
0x78 0xb5 0xd4 0x1c # CHECK: fcune.d $w16, $w26, $w21
0x78 0xc2 0xc3 0x5b # CHECK: fdiv.w $w13, $w24, $w2
0x78 0xf9 0x24 0xdb # CHECK: fdiv.d $w19, $w4, $w25
0x7a 0x10 0x02 0x1b # CHECK: fexdo.h $w8, $w0, $w16
0x7a 0x3b 0x68 0x1b # CHECK: fexdo.w $w0, $w13, $w27
0x79 0xc3 0x04 0x5b # CHECK: fexp2.w $w17, $w0, $w3
0x79 0xea 0x05 0x9b # CHECK: fexp2.d $w22, $w0, $w10
0x79 0x17 0x37 0x5b # CHECK: fmadd.w $w29, $w6, $w23
0x79 0x35 0xe2 0xdb # CHECK: fmadd.d $w11, $w28, $w21
0x7b 0x8d 0xb8 0x1b # CHECK: fmax.w $w0, $w23, $w13
0x7b 0xa8 0x96 0x9b # CHECK: fmax.d $w26, $w18, $w8
0x7b 0xca 0x82 0x9b # CHECK: fmax_a.w $w10, $w16, $w10
0x7b 0xf6 0x4f 0x9b # CHECK: fmax_a.d $w30, $w9, $w22
0x7b 0x1e 0x0e 0x1b # CHECK: fmin.w $w24, $w1, $w30
0x7b 0x2a 0xde 0xdb # CHECK: fmin.d $w27, $w27, $w10
0x7b 0x54 0xea 0x9b # CHECK: fmin_a.w $w10, $w29, $w20
0x7b 0x78 0xf3 0x5b # CHECK: fmin_a.d $w13, $w30, $w24
0x79 0x40 0xcc 0x5b # CHECK: fmsub.w $w17, $w25, $w0
0x79 0x70 0x92 0x1b # CHECK: fmsub.d $w8, $w18, $w16
0x78 0x8f 0x78 0xdb # CHECK: fmul.w $w3, $w15, $w15
0x78 0xaa 0xf2 0x5b # CHECK: fmul.d $w9, $w30, $w10
0x7a 0x0a 0x2e 0x5a # CHECK: fsaf.w $w25, $w5, $w10
0x7a 0x3d 0x1e 0x5a # CHECK: fsaf.d $w25, $w3, $w29
0x7a 0x8d 0x8a 0xda # CHECK: fseq.w $w11, $w17, $w13
0x7a 0xbf 0x07 0x5a # CHECK: fseq.d $w29, $w0, $w31
0x7b 0x9f 0xff 0x9a # CHECK: fsle.w $w30, $w31, $w31
0x7b 0xb8 0xbc 0x9a # CHECK: fsle.d $w18, $w23, $w24
0x7b 0x06 0x2b 0x1a # CHECK: fslt.w $w12, $w5, $w6
0x7b 0x35 0xd4 0x1a # CHECK: fslt.d $w16, $w26, $w21
0x7a 0xcc 0x0f 0x9c # CHECK: fsne.w $w30, $w1, $w12
0x7a 0xf7 0x6b 0x9c # CHECK: fsne.d $w14, $w13, $w23
0x7a 0x5b 0x6e 0xdc # CHECK: fsor.w $w27, $w13, $w27
0x7a 0x6b 0xc3 0x1c # CHECK: fsor.d $w12, $w24, $w11
0x78 0x41 0xd7 0xdb # CHECK: fsub.w $w31, $w26, $w1
0x78 0x7b 0x8c 0xdb # CHECK: fsub.d $w19, $w17, $w27
0x7a 0xd9 0xc4 0x1a # CHECK: fsueq.w $w16, $w24, $w25
0x7a 0xee 0x74 0x9a # CHECK: fsueq.d $w18, $w14, $w14
0x7b 0xcd 0xf5 0xda # CHECK: fsule.w $w23, $w30, $w13
0x7b 0xfa 0x58 0x9a # CHECK: fsule.d $w2, $w11, $w26
0x7b 0x56 0xd2 0xda # CHECK: fsult.w $w11, $w26, $w22
0x7b 0x7e 0xb9 0x9a # CHECK: fsult.d $w6, $w23, $w30
0x7a 0x5c 0x90 0xda # CHECK: fsun.w $w3, $w18, $w28
0x7a 0x73 0x5c 0x9a # CHECK: fsun.d $w18, $w11, $w19
0x7a 0x82 0xfc 0x1c # CHECK: fsune.w $w16, $w31, $w2
0x7a 0xb1 0xd0 0xdc # CHECK: fsune.d $w3, $w26, $w17
0x7a 0x98 0x24 0x1b # CHECK: ftq.h $w16, $w4, $w24
0x7a 0xb9 0x29 0x5b # CHECK: ftq.w $w5, $w5, $w25
0x79 0x4a 0xa4 0x1c # CHECK: madd_q.h $w16, $w20, $w10
0x79 0x69 0x17 0x1c # CHECK: madd_q.w $w28, $w2, $w9
0x7b 0x49 0x92 0x1c # CHECK: maddr_q.h $w8, $w18, $w9
0x7b 0x70 0x67 0x5c # CHECK: maddr_q.w $w29, $w12, $w16
0x79 0x8a 0xd6 0x1c # CHECK: msub_q.h $w24, $w26, $w10
0x79 0xbc 0xf3 0x5c # CHECK: msub_q.w $w13, $w30, $w28
0x7b 0x8b 0xab 0x1c # CHECK: msubr_q.h $w12, $w21, $w11
0x7b 0xb4 0x70 0x5c # CHECK: msubr_q.w $w1, $w14, $w20
0x79 0x1e 0x81 0x9c # CHECK: mul_q.h $w6, $w16, $w30
0x79 0x24 0x0c 0x1c # CHECK: mul_q.w $w16, $w1, $w4
0x7b 0x13 0xa1 0x9c # CHECK: mulr_q.h $w6, $w20, $w19
0x7b 0x34 0x0e 0xdc # CHECK: mulr_q.w $w27, $w1, $w20

View File

@ -1,9 +1,5 @@
# RUN: llvm-mc %s -arch=mips -mcpu=mips32r2 -mattr=+msa -show-encoding | FileCheck %s # RUN: llvm-mc %s -arch=mips -mcpu=mips32r2 -mattr=+msa -show-encoding | FileCheck %s
# #
# RUN: llvm-mc %s -arch=mips -mcpu=mips32r2 -mattr=+msa -filetype=obj -o - | \
# RUN: llvm-objdump -d -arch=mips -mattr=+msa - | \
# RUN: FileCheck %s -check-prefix=CHECKOBJDUMP
#
# CHECK: fill.b $w30, $9 # encoding: [0x7b,0x00,0x4f,0x9e] # CHECK: fill.b $w30, $9 # encoding: [0x7b,0x00,0x4f,0x9e]
# CHECK: fill.h $w31, $23 # encoding: [0x7b,0x01,0xbf,0xde] # CHECK: fill.h $w31, $23 # encoding: [0x7b,0x01,0xbf,0xde]
# CHECK: fill.w $w16, $24 # encoding: [0x7b,0x02,0xc4,0x1e] # CHECK: fill.w $w16, $24 # encoding: [0x7b,0x02,0xc4,0x1e]
@ -20,22 +16,6 @@
# CHECK: pcnt.w $w23, $w9 # encoding: [0x7b,0x06,0x4d,0xde] # CHECK: pcnt.w $w23, $w9 # encoding: [0x7b,0x06,0x4d,0xde]
# CHECK: pcnt.d $w21, $w24 # encoding: [0x7b,0x07,0xc5,0x5e] # CHECK: pcnt.d $w21, $w24 # encoding: [0x7b,0x07,0xc5,0x5e]
# CHECKOBJDUMP: fill.b $w30, $9
# CHECKOBJDUMP: fill.h $w31, $23
# CHECKOBJDUMP: fill.w $w16, $24
# CHECKOBJDUMP: nloc.b $w21, $w0
# CHECKOBJDUMP: nloc.h $w18, $w31
# CHECKOBJDUMP: nloc.w $w2, $w23
# CHECKOBJDUMP: nloc.d $w4, $w10
# CHECKOBJDUMP: nlzc.b $w31, $w2
# CHECKOBJDUMP: nlzc.h $w27, $w22
# CHECKOBJDUMP: nlzc.w $w10, $w29
# CHECKOBJDUMP: nlzc.d $w25, $w9
# CHECKOBJDUMP: pcnt.b $w20, $w18
# CHECKOBJDUMP: pcnt.h $w0, $w8
# CHECKOBJDUMP: pcnt.w $w23, $w9
# CHECKOBJDUMP: pcnt.d $w21, $w24
fill.b $w30, $9 fill.b $w30, $9
fill.h $w31, $23 fill.h $w31, $23
fill.w $w16, $24 fill.w $w16, $24

View File

@ -1,9 +1,5 @@
# RUN: llvm-mc %s -arch=mips -mcpu=mips32r2 -mattr=+msa -show-encoding | FileCheck %s # RUN: llvm-mc %s -arch=mips -mcpu=mips32r2 -mattr=+msa -show-encoding | FileCheck %s
# #
# RUN: llvm-mc %s -arch=mips -mcpu=mips32r2 -mattr=+msa -filetype=obj -o - | \
# RUN: llvm-objdump -d -arch=mips -mattr=+msa - | \
# RUN: FileCheck %s -check-prefix=CHECKOBJDUMP
#
# CHECK: fclass.w $w26, $w12 # encoding: [0x7b,0x20,0x66,0x9e] # CHECK: fclass.w $w26, $w12 # encoding: [0x7b,0x20,0x66,0x9e]
# CHECK: fclass.d $w24, $w17 # encoding: [0x7b,0x21,0x8e,0x1e] # CHECK: fclass.d $w24, $w17 # encoding: [0x7b,0x21,0x8e,0x1e]
# CHECK: fexupl.w $w8, $w0 # encoding: [0x7b,0x30,0x02,0x1e] # CHECK: fexupl.w $w8, $w0 # encoding: [0x7b,0x30,0x02,0x1e]
@ -37,39 +33,6 @@
# CHECK: ftrunc_u.w $w17, $w15 # encoding: [0x7b,0x24,0x7c,0x5e] # CHECK: ftrunc_u.w $w17, $w15 # encoding: [0x7b,0x24,0x7c,0x5e]
# CHECK: ftrunc_u.d $w5, $w27 # encoding: [0x7b,0x25,0xd9,0x5e] # CHECK: ftrunc_u.d $w5, $w27 # encoding: [0x7b,0x25,0xd9,0x5e]
# CHECKOBJDUMP: fclass.w $w26, $w12
# CHECKOBJDUMP: fclass.d $w24, $w17
# CHECKOBJDUMP: fexupl.w $w8, $w0
# CHECKOBJDUMP: fexupl.d $w17, $w29
# CHECKOBJDUMP: fexupr.w $w13, $w4
# CHECKOBJDUMP: fexupr.d $w5, $w2
# CHECKOBJDUMP: ffint_s.w $w20, $w29
# CHECKOBJDUMP: ffint_s.d $w12, $w15
# CHECKOBJDUMP: ffint_u.w $w7, $w27
# CHECKOBJDUMP: ffint_u.d $w19, $w16
# CHECKOBJDUMP: ffql.w $w31, $w13
# CHECKOBJDUMP: ffql.d $w12, $w13
# CHECKOBJDUMP: ffqr.w $w27, $w30
# CHECKOBJDUMP: ffqr.d $w30, $w15
# CHECKOBJDUMP: flog2.w $w25, $w31
# CHECKOBJDUMP: flog2.d $w18, $w10
# CHECKOBJDUMP: frint.w $w7, $w15
# CHECKOBJDUMP: frint.d $w21, $w22
# CHECKOBJDUMP: frcp.w $w19, $w0
# CHECKOBJDUMP: frcp.d $w4, $w14
# CHECKOBJDUMP: frsqrt.w $w12, $w17
# CHECKOBJDUMP: frsqrt.d $w23, $w11
# CHECKOBJDUMP: fsqrt.w $w0, $w11
# CHECKOBJDUMP: fsqrt.d $w15, $w12
# CHECKOBJDUMP: ftint_s.w $w30, $w5
# CHECKOBJDUMP: ftint_s.d $w5, $w23
# CHECKOBJDUMP: ftint_u.w $w20, $w14
# CHECKOBJDUMP: ftint_u.d $w23, $w21
# CHECKOBJDUMP: ftrunc_s.w $w29, $w17
# CHECKOBJDUMP: ftrunc_s.d $w12, $w27
# CHECKOBJDUMP: ftrunc_u.w $w17, $w15
# CHECKOBJDUMP: ftrunc_u.d $w5, $w27
fclass.w $w26, $w12 fclass.w $w26, $w12
fclass.d $w24, $w17 fclass.d $w24, $w17
fexupl.w $w8, $w0 fexupl.w $w8, $w0

View File

@ -1,9 +1,5 @@
# RUN: llvm-mc %s -arch=mips -mcpu=mips32r2 -mattr=+msa -show-encoding | FileCheck %s # RUN: llvm-mc %s -arch=mips -mcpu=mips32r2 -mattr=+msa -show-encoding | FileCheck %s
# #
# RUN: llvm-mc %s -arch=mips -mcpu=mips32r2 -mattr=+msa -filetype=obj -o - | \
# RUN: llvm-objdump -d -arch=mips -mattr=+msa - | \
# RUN: FileCheck %s -check-prefix=CHECKOBJDUMP
#
# CHECK: add_a.b $w26, $w9, $w4 # encoding: [0x78,0x04,0x4e,0x90] # CHECK: add_a.b $w26, $w9, $w4 # encoding: [0x78,0x04,0x4e,0x90]
# CHECK: add_a.h $w23, $w27, $w31 # encoding: [0x78,0x3f,0xdd,0xd0] # CHECK: add_a.h $w23, $w27, $w31 # encoding: [0x78,0x3f,0xdd,0xd0]
# CHECK: add_a.w $w11, $w6, $w22 # encoding: [0x78,0x56,0x32,0xd0] # CHECK: add_a.w $w11, $w6, $w22 # encoding: [0x78,0x56,0x32,0xd0]
@ -247,249 +243,6 @@
# CHECK: vshf.w $w16, $w30, $w25 # encoding: [0x78,0x59,0xf4,0x15] # CHECK: vshf.w $w16, $w30, $w25 # encoding: [0x78,0x59,0xf4,0x15]
# CHECK: vshf.d $w19, $w11, $w15 # encoding: [0x78,0x6f,0x5c,0xd5] # CHECK: vshf.d $w19, $w11, $w15 # encoding: [0x78,0x6f,0x5c,0xd5]
# CHECKOBJDUMP: add_a.b $w26, $w9, $w4
# CHECKOBJDUMP: add_a.h $w23, $w27, $w31
# CHECKOBJDUMP: add_a.w $w11, $w6, $w22
# CHECKOBJDUMP: add_a.d $w6, $w10, $w0
# CHECKOBJDUMP: adds_a.b $w19, $w24, $w19
# CHECKOBJDUMP: adds_a.h $w25, $w6, $w4
# CHECKOBJDUMP: adds_a.w $w25, $w17, $w27
# CHECKOBJDUMP: adds_a.d $w15, $w18, $w26
# CHECKOBJDUMP: adds_s.b $w29, $w11, $w19
# CHECKOBJDUMP: adds_s.h $w5, $w23, $w26
# CHECKOBJDUMP: adds_s.w $w16, $w14, $w13
# CHECKOBJDUMP: adds_s.d $w2, $w14, $w28
# CHECKOBJDUMP: adds_u.b $w3, $w17, $w14
# CHECKOBJDUMP: adds_u.h $w10, $w30, $w4
# CHECKOBJDUMP: adds_u.w $w15, $w18, $w20
# CHECKOBJDUMP: adds_u.d $w30, $w10, $w9
# CHECKOBJDUMP: addv.b $w24, $w20, $w21
# CHECKOBJDUMP: addv.h $w4, $w13, $w27
# CHECKOBJDUMP: addv.w $w19, $w11, $w14
# CHECKOBJDUMP: addv.d $w2, $w21, $w31
# CHECKOBJDUMP: asub_s.b $w23, $w16, $w3
# CHECKOBJDUMP: asub_s.h $w22, $w17, $w25
# CHECKOBJDUMP: asub_s.w $w24, $w1, $w9
# CHECKOBJDUMP: asub_s.d $w13, $w12, $w12
# CHECKOBJDUMP: asub_u.b $w10, $w29, $w11
# CHECKOBJDUMP: asub_u.h $w18, $w9, $w15
# CHECKOBJDUMP: asub_u.w $w10, $w19, $w31
# CHECKOBJDUMP: asub_u.d $w17, $w10, $w0
# CHECKOBJDUMP: ave_s.b $w2, $w5, $w1
# CHECKOBJDUMP: ave_s.h $w16, $w19, $w9
# CHECKOBJDUMP: ave_s.w $w17, $w31, $w5
# CHECKOBJDUMP: ave_s.d $w27, $w25, $w10
# CHECKOBJDUMP: ave_u.b $w16, $w19, $w9
# CHECKOBJDUMP: ave_u.h $w28, $w28, $w11
# CHECKOBJDUMP: ave_u.w $w11, $w12, $w11
# CHECKOBJDUMP: ave_u.d $w30, $w19, $w28
# CHECKOBJDUMP: aver_s.b $w26, $w16, $w2
# CHECKOBJDUMP: aver_s.h $w31, $w27, $w27
# CHECKOBJDUMP: aver_s.w $w28, $w18, $w25
# CHECKOBJDUMP: aver_s.d $w29, $w21, $w27
# CHECKOBJDUMP: aver_u.b $w29, $w26, $w3
# CHECKOBJDUMP: aver_u.h $w18, $w18, $w9
# CHECKOBJDUMP: aver_u.w $w17, $w25, $w29
# CHECKOBJDUMP: aver_u.d $w22, $w22, $w19
# CHECKOBJDUMP: bclr.b $w2, $w15, $w29
# CHECKOBJDUMP: bclr.h $w16, $w21, $w28
# CHECKOBJDUMP: bclr.w $w19, $w2, $w9
# CHECKOBJDUMP: bclr.d $w27, $w31, $w4
# CHECKOBJDUMP: binsl.b $w5, $w16, $w24
# CHECKOBJDUMP: binsl.h $w30, $w5, $w10
# CHECKOBJDUMP: binsl.w $w14, $w15, $w13
# CHECKOBJDUMP: binsl.d $w23, $w20, $w12
# CHECKOBJDUMP: binsr.b $w22, $w11, $w2
# CHECKOBJDUMP: binsr.h $w0, $w26, $w6
# CHECKOBJDUMP: binsr.w $w26, $w3, $w28
# CHECKOBJDUMP: binsr.d $w0, $w0, $w21
# CHECKOBJDUMP: bneg.b $w0, $w11, $w24
# CHECKOBJDUMP: bneg.h $w28, $w16, $w4
# CHECKOBJDUMP: bneg.w $w3, $w26, $w19
# CHECKOBJDUMP: bneg.d $w13, $w29, $w15
# CHECKOBJDUMP: bset.b $w31, $w5, $w31
# CHECKOBJDUMP: bset.h $w14, $w12, $w6
# CHECKOBJDUMP: bset.w $w31, $w9, $w12
# CHECKOBJDUMP: bset.d $w5, $w22, $w5
# CHECKOBJDUMP: ceq.b $w31, $w31, $w18
# CHECKOBJDUMP: ceq.h $w10, $w27, $w9
# CHECKOBJDUMP: ceq.w $w9, $w5, $w14
# CHECKOBJDUMP: ceq.d $w5, $w17, $w0
# CHECKOBJDUMP: cle_s.b $w23, $w4, $w9
# CHECKOBJDUMP: cle_s.h $w22, $w27, $w19
# CHECKOBJDUMP: cle_s.w $w30, $w26, $w10
# CHECKOBJDUMP: cle_s.d $w18, $w5, $w10
# CHECKOBJDUMP: cle_u.b $w1, $w25, $w0
# CHECKOBJDUMP: cle_u.h $w7, $w0, $w29
# CHECKOBJDUMP: cle_u.w $w25, $w18, $w1
# CHECKOBJDUMP: cle_u.d $w6, $w0, $w30
# CHECKOBJDUMP: clt_s.b $w25, $w2, $w21
# CHECKOBJDUMP: clt_s.h $w2, $w19, $w9
# CHECKOBJDUMP: clt_s.w $w23, $w8, $w16
# CHECKOBJDUMP: clt_s.d $w7, $w30, $w12
# CHECKOBJDUMP: clt_u.b $w2, $w31, $w13
# CHECKOBJDUMP: clt_u.h $w16, $w31, $w23
# CHECKOBJDUMP: clt_u.w $w3, $w24, $w9
# CHECKOBJDUMP: clt_u.d $w7, $w0, $w1
# CHECKOBJDUMP: div_s.b $w29, $w3, $w18
# CHECKOBJDUMP: div_s.h $w17, $w16, $w13
# CHECKOBJDUMP: div_s.w $w4, $w25, $w30
# CHECKOBJDUMP: div_s.d $w31, $w9, $w20
# CHECKOBJDUMP: div_u.b $w6, $w29, $w10
# CHECKOBJDUMP: div_u.h $w24, $w21, $w14
# CHECKOBJDUMP: div_u.w $w29, $w14, $w25
# CHECKOBJDUMP: div_u.d $w31, $w1, $w21
# CHECKOBJDUMP: dotp_s.h $w23, $w22, $w25
# CHECKOBJDUMP: dotp_s.w $w20, $w14, $w5
# CHECKOBJDUMP: dotp_s.d $w17, $w2, $w22
# CHECKOBJDUMP: dotp_u.h $w13, $w2, $w6
# CHECKOBJDUMP: dotp_u.w $w15, $w22, $w21
# CHECKOBJDUMP: dotp_u.d $w4, $w16, $w26
# CHECKOBJDUMP: dpadd_s.h $w1, $w28, $w22
# CHECKOBJDUMP: dpadd_s.w $w10, $w1, $w12
# CHECKOBJDUMP: dpadd_s.d $w3, $w21, $w27
# CHECKOBJDUMP: dpadd_u.h $w17, $w5, $w20
# CHECKOBJDUMP: dpadd_u.w $w24, $w8, $w16
# CHECKOBJDUMP: dpadd_u.d $w15, $w29, $w16
# CHECKOBJDUMP: dpsub_s.h $w4, $w11, $w12
# CHECKOBJDUMP: dpsub_s.w $w4, $w7, $w6
# CHECKOBJDUMP: dpsub_s.d $w31, $w12, $w28
# CHECKOBJDUMP: dpsub_u.h $w4, $w25, $w17
# CHECKOBJDUMP: dpsub_u.w $w19, $w25, $w16
# CHECKOBJDUMP: dpsub_u.d $w7, $w10, $w26
# CHECKOBJDUMP: hadd_s.h $w28, $w24, $w2
# CHECKOBJDUMP: hadd_s.w $w24, $w17, $w11
# CHECKOBJDUMP: hadd_s.d $w17, $w15, $w20
# CHECKOBJDUMP: hadd_u.h $w12, $w29, $w17
# CHECKOBJDUMP: hadd_u.w $w9, $w5, $w6
# CHECKOBJDUMP: hadd_u.d $w1, $w20, $w6
# CHECKOBJDUMP: hsub_s.h $w16, $w14, $w29
# CHECKOBJDUMP: hsub_s.w $w9, $w13, $w11
# CHECKOBJDUMP: hsub_s.d $w30, $w18, $w14
# CHECKOBJDUMP: hsub_u.h $w7, $w12, $w14
# CHECKOBJDUMP: hsub_u.w $w21, $w5, $w5
# CHECKOBJDUMP: hsub_u.d $w11, $w12, $w31
# CHECKOBJDUMP: ilvev.b $w18, $w16, $w30
# CHECKOBJDUMP: ilvev.h $w14, $w0, $w13
# CHECKOBJDUMP: ilvev.w $w12, $w25, $w22
# CHECKOBJDUMP: ilvev.d $w30, $w27, $w3
# CHECKOBJDUMP: ilvl.b $w29, $w3, $w21
# CHECKOBJDUMP: ilvl.h $w27, $w10, $w17
# CHECKOBJDUMP: ilvl.w $w6, $w1, $w0
# CHECKOBJDUMP: ilvl.d $w3, $w16, $w24
# CHECKOBJDUMP: ilvod.b $w11, $w5, $w20
# CHECKOBJDUMP: ilvod.h $w18, $w13, $w31
# CHECKOBJDUMP: ilvod.w $w29, $w16, $w24
# CHECKOBJDUMP: ilvod.d $w22, $w12, $w29
# CHECKOBJDUMP: ilvr.b $w4, $w30, $w6
# CHECKOBJDUMP: ilvr.h $w28, $w19, $w29
# CHECKOBJDUMP: ilvr.w $w18, $w20, $w21
# CHECKOBJDUMP: ilvr.d $w23, $w30, $w12
# CHECKOBJDUMP: maddv.b $w17, $w31, $w29
# CHECKOBJDUMP: maddv.h $w7, $w24, $w9
# CHECKOBJDUMP: maddv.w $w22, $w22, $w20
# CHECKOBJDUMP: maddv.d $w30, $w26, $w20
# CHECKOBJDUMP: max_a.b $w23, $w11, $w23
# CHECKOBJDUMP: max_a.h $w20, $w5, $w30
# CHECKOBJDUMP: max_a.w $w7, $w18, $w30
# CHECKOBJDUMP: max_a.d $w8, $w8, $w31
# CHECKOBJDUMP: max_s.b $w10, $w1, $w19
# CHECKOBJDUMP: max_s.h $w15, $w29, $w17
# CHECKOBJDUMP: max_s.w $w15, $w29, $w14
# CHECKOBJDUMP: max_s.d $w25, $w24, $w3
# CHECKOBJDUMP: max_u.b $w12, $w24, $w5
# CHECKOBJDUMP: max_u.h $w5, $w6, $w7
# CHECKOBJDUMP: max_u.w $w16, $w4, $w7
# CHECKOBJDUMP: max_u.d $w26, $w12, $w24
# CHECKOBJDUMP: min_a.b $w4, $w26, $w1
# CHECKOBJDUMP: min_a.h $w12, $w13, $w31
# CHECKOBJDUMP: min_a.w $w28, $w20, $w0
# CHECKOBJDUMP: min_a.d $w12, $w20, $w19
# CHECKOBJDUMP: min_s.b $w19, $w3, $w14
# CHECKOBJDUMP: min_s.h $w27, $w21, $w8
# CHECKOBJDUMP: min_s.w $w0, $w14, $w30
# CHECKOBJDUMP: min_s.d $w6, $w8, $w21
# CHECKOBJDUMP: min_u.b $w22, $w26, $w8
# CHECKOBJDUMP: min_u.h $w7, $w27, $w12
# CHECKOBJDUMP: min_u.w $w8, $w20, $w14
# CHECKOBJDUMP: min_u.d $w26, $w14, $w15
# CHECKOBJDUMP: mod_s.b $w18, $w1, $w26
# CHECKOBJDUMP: mod_s.h $w31, $w30, $w28
# CHECKOBJDUMP: mod_s.w $w2, $w6, $w13
# CHECKOBJDUMP: mod_s.d $w21, $w27, $w22
# CHECKOBJDUMP: mod_u.b $w16, $w7, $w13
# CHECKOBJDUMP: mod_u.h $w24, $w8, $w7
# CHECKOBJDUMP: mod_u.w $w30, $w2, $w17
# CHECKOBJDUMP: mod_u.d $w31, $w2, $w25
# CHECKOBJDUMP: msubv.b $w14, $w5, $w12
# CHECKOBJDUMP: msubv.h $w6, $w7, $w30
# CHECKOBJDUMP: msubv.w $w13, $w2, $w21
# CHECKOBJDUMP: msubv.d $w16, $w14, $w27
# CHECKOBJDUMP: mulv.b $w20, $w3, $w13
# CHECKOBJDUMP: mulv.h $w27, $w26, $w14
# CHECKOBJDUMP: mulv.w $w10, $w29, $w3
# CHECKOBJDUMP: mulv.d $w7, $w19, $w29
# CHECKOBJDUMP: pckev.b $w5, $w27, $w7
# CHECKOBJDUMP: pckev.h $w1, $w4, $w27
# CHECKOBJDUMP: pckev.w $w30, $w20, $w0
# CHECKOBJDUMP: pckev.d $w6, $w1, $w15
# CHECKOBJDUMP: pckod.b $w18, $w28, $w30
# CHECKOBJDUMP: pckod.h $w26, $w5, $w8
# CHECKOBJDUMP: pckod.w $w9, $w4, $w2
# CHECKOBJDUMP: pckod.d $w30, $w22, $w20
# CHECKOBJDUMP: sld.b $w5, $w23[$12]
# CHECKOBJDUMP: sld.h $w1, $w23[$3]
# CHECKOBJDUMP: sld.w $w20, $w8[$9]
# CHECKOBJDUMP: sld.d $w7, $w23[$fp]
# CHECKOBJDUMP: sll.b $w3, $w0, $w17
# CHECKOBJDUMP: sll.h $w17, $w27, $w3
# CHECKOBJDUMP: sll.w $w16, $w7, $w6
# CHECKOBJDUMP: sll.d $w9, $w0, $w26
# CHECKOBJDUMP: splat.b $w28, $w1[$1]
# CHECKOBJDUMP: splat.h $w2, $w11[$11]
# CHECKOBJDUMP: splat.w $w22, $w0[$11]
# CHECKOBJDUMP: splat.d $w0, $w0[$2]
# CHECKOBJDUMP: sra.b $w28, $w4, $w17
# CHECKOBJDUMP: sra.h $w13, $w9, $w3
# CHECKOBJDUMP: sra.w $w27, $w21, $w19
# CHECKOBJDUMP: sra.d $w30, $w8, $w23
# CHECKOBJDUMP: srar.b $w19, $w18, $w18
# CHECKOBJDUMP: srar.h $w7, $w23, $w8
# CHECKOBJDUMP: srar.w $w1, $w12, $w2
# CHECKOBJDUMP: srar.d $w21, $w7, $w14
# CHECKOBJDUMP: srl.b $w12, $w3, $w19
# CHECKOBJDUMP: srl.h $w23, $w31, $w20
# CHECKOBJDUMP: srl.w $w18, $w27, $w11
# CHECKOBJDUMP: srl.d $w3, $w12, $w26
# CHECKOBJDUMP: srlr.b $w15, $w21, $w11
# CHECKOBJDUMP: srlr.h $w21, $w13, $w19
# CHECKOBJDUMP: srlr.w $w6, $w30, $w3
# CHECKOBJDUMP: srlr.d $w1, $w2, $w14
# CHECKOBJDUMP: subs_s.b $w25, $w15, $w1
# CHECKOBJDUMP: subs_s.h $w28, $w25, $w22
# CHECKOBJDUMP: subs_s.w $w10, $w12, $w21
# CHECKOBJDUMP: subs_s.d $w4, $w20, $w18
# CHECKOBJDUMP: subs_u.b $w21, $w6, $w25
# CHECKOBJDUMP: subs_u.h $w3, $w10, $w7
# CHECKOBJDUMP: subs_u.w $w9, $w15, $w10
# CHECKOBJDUMP: subs_u.d $w7, $w19, $w10
# CHECKOBJDUMP: subsus_u.b $w6, $w7, $w12
# CHECKOBJDUMP: subsus_u.h $w6, $w29, $w19
# CHECKOBJDUMP: subsus_u.w $w7, $w15, $w7
# CHECKOBJDUMP: subsus_u.d $w9, $w3, $w15
# CHECKOBJDUMP: subsuu_s.b $w22, $w3, $w31
# CHECKOBJDUMP: subsuu_s.h $w19, $w23, $w22
# CHECKOBJDUMP: subsuu_s.w $w9, $w10, $w13
# CHECKOBJDUMP: subsuu_s.d $w5, $w6, $w0
# CHECKOBJDUMP: subv.b $w6, $w13, $w19
# CHECKOBJDUMP: subv.h $w4, $w25, $w12
# CHECKOBJDUMP: subv.w $w27, $w27, $w11
# CHECKOBJDUMP: subv.d $w9, $w24, $w10
# CHECKOBJDUMP: vshf.b $w3, $w16, $w5
# CHECKOBJDUMP: vshf.h $w20, $w19, $w8
# CHECKOBJDUMP: vshf.w $w16, $w30, $w25
# CHECKOBJDUMP: vshf.d $w19, $w11, $w15
add_a.b $w26, $w9, $w4 add_a.b $w26, $w9, $w4
add_a.h $w23, $w27, $w31 add_a.h $w23, $w27, $w31
add_a.w $w11, $w6, $w22 add_a.w $w11, $w6, $w22

View File

@ -1,9 +1,5 @@
# RUN: llvm-mc %s -arch=mips -mcpu=mips32r2 -mattr=+msa -show-encoding | FileCheck %s # RUN: llvm-mc %s -arch=mips -mcpu=mips32r2 -mattr=+msa -show-encoding | FileCheck %s
# #
# RUN: llvm-mc %s -arch=mips -mcpu=mips32r2 -mattr=+msa -filetype=obj -o - | \
# RUN: llvm-objdump -d -arch=mips -mattr=+msa - | \
# RUN: FileCheck %s -check-prefix=CHECKOBJDUMP
#
# CHECK: fadd.w $w28, $w19, $w28 # encoding: [0x78,0x1c,0x9f,0x1b] # CHECK: fadd.w $w28, $w19, $w28 # encoding: [0x78,0x1c,0x9f,0x1b]
# CHECK: fadd.d $w13, $w2, $w29 # encoding: [0x78,0x3d,0x13,0x5b] # CHECK: fadd.d $w13, $w2, $w29 # encoding: [0x78,0x3d,0x13,0x5b]
# CHECK: fcaf.w $w14, $w11, $w25 # encoding: [0x78,0x19,0x5b,0x9a] # CHECK: fcaf.w $w14, $w11, $w25 # encoding: [0x78,0x19,0x5b,0x9a]
@ -87,89 +83,6 @@
# CHECK: mulr_q.h $w6, $w20, $w19 # encoding: [0x7b,0x13,0xa1,0x9c] # CHECK: mulr_q.h $w6, $w20, $w19 # encoding: [0x7b,0x13,0xa1,0x9c]
# CHECK: mulr_q.w $w27, $w1, $w20 # encoding: [0x7b,0x34,0x0e,0xdc] # CHECK: mulr_q.w $w27, $w1, $w20 # encoding: [0x7b,0x34,0x0e,0xdc]
# CHECKOBJDUMP: fadd.w $w28, $w19, $w28
# CHECKOBJDUMP: fadd.d $w13, $w2, $w29
# CHECKOBJDUMP: fcaf.w $w14, $w11, $w25
# CHECKOBJDUMP: fcaf.d $w1, $w1, $w19
# CHECKOBJDUMP: fceq.w $w1, $w23, $w16
# CHECKOBJDUMP: fceq.d $w0, $w8, $w16
# CHECKOBJDUMP: fcle.w $w16, $w9, $w24
# CHECKOBJDUMP: fcle.d $w27, $w14, $w1
# CHECKOBJDUMP: fclt.w $w28, $w8, $w8
# CHECKOBJDUMP: fclt.d $w30, $w25, $w11
# CHECKOBJDUMP: fcne.w $w2, $w18, $w23
# CHECKOBJDUMP: fcne.d $w14, $w20, $w15
# CHECKOBJDUMP: fcor.w $w10, $w18, $w25
# CHECKOBJDUMP: fcor.d $w17, $w25, $w11
# CHECKOBJDUMP: fcueq.w $w14, $w2, $w21
# CHECKOBJDUMP: fcueq.d $w29, $w3, $w7
# CHECKOBJDUMP: fcule.w $w17, $w5, $w3
# CHECKOBJDUMP: fcule.d $w31, $w1, $w30
# CHECKOBJDUMP: fcult.w $w6, $w25, $w9
# CHECKOBJDUMP: fcult.d $w27, $w8, $w17
# CHECKOBJDUMP: fcun.w $w4, $w20, $w8
# CHECKOBJDUMP: fcun.d $w29, $w11, $w3
# CHECKOBJDUMP: fcune.w $w13, $w18, $w19
# CHECKOBJDUMP: fcune.d $w16, $w26, $w21
# CHECKOBJDUMP: fdiv.w $w13, $w24, $w2
# CHECKOBJDUMP: fdiv.d $w19, $w4, $w25
# CHECKOBJDUMP: fexdo.h $w8, $w0, $w16
# CHECKOBJDUMP: fexdo.w $w0, $w13, $w27
# CHECKOBJDUMP: fexp2.w $w17, $w0, $w3
# CHECKOBJDUMP: fexp2.d $w22, $w0, $w10
# CHECKOBJDUMP: fmadd.w $w29, $w6, $w23
# CHECKOBJDUMP: fmadd.d $w11, $w28, $w21
# CHECKOBJDUMP: fmax.w $w0, $w23, $w13
# CHECKOBJDUMP: fmax.d $w26, $w18, $w8
# CHECKOBJDUMP: fmax_a.w $w10, $w16, $w10
# CHECKOBJDUMP: fmax_a.d $w30, $w9, $w22
# CHECKOBJDUMP: fmin.w $w24, $w1, $w30
# CHECKOBJDUMP: fmin.d $w27, $w27, $w10
# CHECKOBJDUMP: fmin_a.w $w10, $w29, $w20
# CHECKOBJDUMP: fmin_a.d $w13, $w30, $w24
# CHECKOBJDUMP: fmsub.w $w17, $w25, $w0
# CHECKOBJDUMP: fmsub.d $w8, $w18, $w16
# CHECKOBJDUMP: fmul.w $w3, $w15, $w15
# CHECKOBJDUMP: fmul.d $w9, $w30, $w10
# CHECKOBJDUMP: fsaf.w $w25, $w5, $w10
# CHECKOBJDUMP: fsaf.d $w25, $w3, $w29
# CHECKOBJDUMP: fseq.w $w11, $w17, $w13
# CHECKOBJDUMP: fseq.d $w29, $w0, $w31
# CHECKOBJDUMP: fsle.w $w30, $w31, $w31
# CHECKOBJDUMP: fsle.d $w18, $w23, $w24
# CHECKOBJDUMP: fslt.w $w12, $w5, $w6
# CHECKOBJDUMP: fslt.d $w16, $w26, $w21
# CHECKOBJDUMP: fsne.w $w30, $w1, $w12
# CHECKOBJDUMP: fsne.d $w14, $w13, $w23
# CHECKOBJDUMP: fsor.w $w27, $w13, $w27
# CHECKOBJDUMP: fsor.d $w12, $w24, $w11
# CHECKOBJDUMP: fsub.w $w31, $w26, $w1
# CHECKOBJDUMP: fsub.d $w19, $w17, $w27
# CHECKOBJDUMP: fsueq.w $w16, $w24, $w25
# CHECKOBJDUMP: fsueq.d $w18, $w14, $w14
# CHECKOBJDUMP: fsule.w $w23, $w30, $w13
# CHECKOBJDUMP: fsule.d $w2, $w11, $w26
# CHECKOBJDUMP: fsult.w $w11, $w26, $w22
# CHECKOBJDUMP: fsult.d $w6, $w23, $w30
# CHECKOBJDUMP: fsun.w $w3, $w18, $w28
# CHECKOBJDUMP: fsun.d $w18, $w11, $w19
# CHECKOBJDUMP: fsune.w $w16, $w31, $w2
# CHECKOBJDUMP: fsune.d $w3, $w26, $w17
# CHECKOBJDUMP: ftq.h $w16, $w4, $w24
# CHECKOBJDUMP: ftq.w $w5, $w5, $w25
# CHECKOBJDUMP: madd_q.h $w16, $w20, $w10
# CHECKOBJDUMP: madd_q.w $w28, $w2, $w9
# CHECKOBJDUMP: maddr_q.h $w8, $w18, $w9
# CHECKOBJDUMP: maddr_q.w $w29, $w12, $w16
# CHECKOBJDUMP: msub_q.h $w24, $w26, $w10
# CHECKOBJDUMP: msub_q.w $w13, $w30, $w28
# CHECKOBJDUMP: msubr_q.h $w12, $w21, $w11
# CHECKOBJDUMP: msubr_q.w $w1, $w14, $w20
# CHECKOBJDUMP: mul_q.h $w6, $w16, $w30
# CHECKOBJDUMP: mul_q.w $w16, $w1, $w4
# CHECKOBJDUMP: mulr_q.h $w6, $w20, $w19
# CHECKOBJDUMP: mulr_q.w $w27, $w1, $w20
fadd.w $w28, $w19, $w28 fadd.w $w28, $w19, $w28
fadd.d $w13, $w2, $w29 fadd.d $w13, $w2, $w29
fcaf.w $w14, $w11, $w25 fcaf.w $w14, $w11, $w25