[mips] Move disassembler test (Mips MSA test_bit) into correct folder.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208586 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Matheus Almeida 2014-05-12 16:10:00 +00:00
parent 5e3662ae95
commit 86992065e6
2 changed files with 50 additions and 53 deletions

View File

@ -0,0 +1,50 @@
# RUN: llvm-mc --disassemble %s -triple=mips-unknown-linux -mcpu=mips32r2 -mattr=+msa | FileCheck %s
0x79 0xf2 0xf5 0x49 # CHECK: bclri.b $w21, $w30, 2
0x79 0xe0 0xae 0x09 # CHECK: bclri.h $w24, $w21, 0
0x79 0xc3 0xf5 0xc9 # CHECK: bclri.w $w23, $w30, 3
0x79 0x80 0x5a 0x49 # CHECK: bclri.d $w9, $w11, 0
0x7b 0x71 0x66 0x49 # CHECK: binsli.b $w25, $w12, 1
0x7b 0x60 0xb5 0x49 # CHECK: binsli.h $w21, $w22, 0
0x7b 0x40 0x25 0x89 # CHECK: binsli.w $w22, $w4, 0
0x7b 0x06 0x11 0x89 # CHECK: binsli.d $w6, $w2, 6
0x7b 0xf0 0x9b 0xc9 # CHECK: binsri.b $w15, $w19, 0
0x7b 0xe1 0xf2 0x09 # CHECK: binsri.h $w8, $w30, 1
0x7b 0xc5 0x98 0x89 # CHECK: binsri.w $w2, $w19, 5
0x7b 0x81 0xa4 0x89 # CHECK: binsri.d $w18, $w20, 1
0x7a 0xf0 0x9e 0x09 # CHECK: bnegi.b $w24, $w19, 0
0x7a 0xe3 0x5f 0x09 # CHECK: bnegi.h $w28, $w11, 3
0x7a 0xc5 0xd8 0x49 # CHECK: bnegi.w $w1, $w27, 5
0x7a 0x81 0xa9 0x09 # CHECK: bnegi.d $w4, $w21, 1
0x7a 0x70 0x44 0x89 # CHECK: bseti.b $w18, $w8, 0
0x7a 0x62 0x76 0x09 # CHECK: bseti.h $w24, $w14, 2
0x7a 0x44 0x92 0x49 # CHECK: bseti.w $w9, $w18, 4
0x7a 0x01 0x79 0xc9 # CHECK: bseti.d $w7, $w15, 1
0x78 0x72 0xff 0xca # CHECK: sat_s.b $w31, $w31, 2
0x78 0x60 0x9c 0xca # CHECK: sat_s.h $w19, $w19, 0
0x78 0x40 0xec 0xca # CHECK: sat_s.w $w19, $w29, 0
0x78 0x00 0xb2 0xca # CHECK: sat_s.d $w11, $w22, 0
0x78 0xf3 0x68 0x4a # CHECK: sat_u.b $w1, $w13, 3
0x78 0xe4 0xc7 0x8a # CHECK: sat_u.h $w30, $w24, 4
0x78 0xc0 0x6f 0xca # CHECK: sat_u.w $w31, $w13, 0
0x78 0x85 0x87 0x4a # CHECK: sat_u.d $w29, $w16, 5
0x78 0x71 0x55 0xc9 # CHECK: slli.b $w23, $w10, 1
0x78 0x61 0x92 0x49 # CHECK: slli.h $w9, $w18, 1
0x78 0x44 0xea 0xc9 # CHECK: slli.w $w11, $w29, 4
0x78 0x01 0xa6 0x49 # CHECK: slli.d $w25, $w20, 1
0x78 0xf1 0xee 0x09 # CHECK: srai.b $w24, $w29, 1
0x78 0xe0 0x30 0x49 # CHECK: srai.h $w1, $w6, 0
0x78 0xc1 0xd1 0xc9 # CHECK: srai.w $w7, $w26, 1
0x78 0x83 0xcd 0x09 # CHECK: srai.d $w20, $w25, 3
0x79 0x70 0xc9 0x4a # CHECK: srari.b $w5, $w25, 0
0x79 0x64 0x31 0xca # CHECK: srari.h $w7, $w6, 4
0x79 0x45 0x5c 0x4a # CHECK: srari.w $w17, $w11, 5
0x79 0x05 0xcd 0x4a # CHECK: srari.d $w21, $w25, 5
0x79 0x72 0x00 0x89 # CHECK: srli.b $w2, $w0, 2
0x79 0x62 0xff 0xc9 # CHECK: srli.h $w31, $w31, 2
0x79 0x44 0x49 0x49 # CHECK: srli.w $w5, $w9, 4
0x79 0x05 0xd6 0xc9 # CHECK: srli.d $w27, $w26, 5
0x79 0xf0 0x1c 0x8a # CHECK: srlri.b $w18, $w3, 0
0x79 0xe3 0x10 0x4a # CHECK: srlri.h $w1, $w2, 3
0x79 0xc2 0xb2 0xca # CHECK: srlri.w $w11, $w22, 2
0x79 0x86 0x56 0x0a # CHECK: srlri.d $w24, $w10, 6

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 -filetype=obj -o - | \
# RUN: llvm-objdump -d -arch=mips -mattr=+msa - | \
# RUN: FileCheck %s -check-prefix=CHECKOBJDUMP
#
# CHECK: bclri.b $w21, $w30, 2 # encoding: [0x79,0xf2,0xf5,0x49]
# CHECK: bclri.h $w24, $w21, 0 # encoding: [0x79,0xe0,0xae,0x09]
# CHECK: bclri.w $w23, $w30, 3 # encoding: [0x79,0xc3,0xf5,0xc9]
@ -53,55 +49,6 @@
# CHECK: srlri.w $w11, $w22, 2 # encoding: [0x79,0xc2,0xb2,0xca]
# CHECK: srlri.d $w24, $w10, 6 # encoding: [0x79,0x86,0x56,0x0a]
# CHECKOBJDUMP: bclri.b $w21, $w30, 2
# CHECKOBJDUMP: bclri.h $w24, $w21, 0
# CHECKOBJDUMP: bclri.w $w23, $w30, 3
# CHECKOBJDUMP: bclri.d $w9, $w11, 0
# CHECKOBJDUMP: binsli.b $w25, $w12, 1
# CHECKOBJDUMP: binsli.h $w21, $w22, 0
# CHECKOBJDUMP: binsli.w $w22, $w4, 0
# CHECKOBJDUMP: binsli.d $w6, $w2, 6
# CHECKOBJDUMP: binsri.b $w15, $w19, 0
# CHECKOBJDUMP: binsri.h $w8, $w30, 1
# CHECKOBJDUMP: binsri.w $w2, $w19, 5
# CHECKOBJDUMP: binsri.d $w18, $w20, 1
# CHECKOBJDUMP: bnegi.b $w24, $w19, 0
# CHECKOBJDUMP: bnegi.h $w28, $w11, 3
# CHECKOBJDUMP: bnegi.w $w1, $w27, 5
# CHECKOBJDUMP: bnegi.d $w4, $w21, 1
# CHECKOBJDUMP: bseti.b $w18, $w8, 0
# CHECKOBJDUMP: bseti.h $w24, $w14, 2
# CHECKOBJDUMP: bseti.w $w9, $w18, 4
# CHECKOBJDUMP: bseti.d $w7, $w15, 1
# CHECKOBJDUMP: sat_s.b $w31, $w31, 2
# CHECKOBJDUMP: sat_s.h $w19, $w19, 0
# CHECKOBJDUMP: sat_s.w $w19, $w29, 0
# CHECKOBJDUMP: sat_s.d $w11, $w22, 0
# CHECKOBJDUMP: sat_u.b $w1, $w13, 3
# CHECKOBJDUMP: sat_u.h $w30, $w24, 4
# CHECKOBJDUMP: sat_u.w $w31, $w13, 0
# CHECKOBJDUMP: sat_u.d $w29, $w16, 5
# CHECKOBJDUMP: slli.b $w23, $w10, 1
# CHECKOBJDUMP: slli.h $w9, $w18, 1
# CHECKOBJDUMP: slli.w $w11, $w29, 4
# CHECKOBJDUMP: slli.d $w25, $w20, 1
# CHECKOBJDUMP: srai.b $w24, $w29, 1
# CHECKOBJDUMP: srai.h $w1, $w6, 0
# CHECKOBJDUMP: srai.w $w7, $w26, 1
# CHECKOBJDUMP: srai.d $w20, $w25, 3
# CHECKOBJDUMP: srari.b $w5, $w25, 0
# CHECKOBJDUMP: srari.h $w7, $w6, 4
# CHECKOBJDUMP: srari.w $w17, $w11, 5
# CHECKOBJDUMP: srari.d $w21, $w25, 5
# CHECKOBJDUMP: srli.b $w2, $w0, 2
# CHECKOBJDUMP: srli.h $w31, $w31, 2
# CHECKOBJDUMP: srli.w $w5, $w9, 4
# CHECKOBJDUMP: srli.d $w27, $w26, 5
# CHECKOBJDUMP: srlri.b $w18, $w3, 0
# CHECKOBJDUMP: srlri.h $w1, $w2, 3
# CHECKOBJDUMP: srlri.w $w11, $w22, 2
# CHECKOBJDUMP: srlri.d $w24, $w10, 6
bclri.b $w21, $w30, 2
bclri.h $w24, $w21, 0
bclri.w $w23, $w30, 3