[mips] Move disassembler tests (Mips MSA test_elm*) into correct folder.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208589 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Matheus Almeida 2014-05-12 16:23:45 +00:00
parent e18828fb2b
commit e9cd60685b
10 changed files with 37 additions and 50 deletions

View File

@ -0,0 +1,17 @@
# RUN: llvm-mc --disassemble %s -triple=mips-unknown-linux -mcpu=mips32r2 -mattr=+msa | FileCheck %s
0x78 0x82 0x43 0x59 # CHECK: copy_s.b $13, $w8[2]
0x78 0xa0 0xc8 0x59 # CHECK: copy_s.h $1, $w25[0]
0x78 0xb1 0x2d 0x99 # CHECK: copy_s.w $22, $w5[1]
0x78 0xc4 0xa5 0x99 # CHECK: copy_u.b $22, $w20[4]
0x78 0xe0 0x25 0x19 # CHECK: copy_u.h $20, $w4[0]
0x78 0xf2 0x6f 0x99 # CHECK: copy_u.w $fp, $w13[2]
0x78 0x04 0xe8 0x19 # CHECK: sldi.b $w0, $w29[4]
0x78 0x20 0x8a 0x19 # CHECK: sldi.h $w8, $w17[0]
0x78 0x32 0xdd 0x19 # CHECK: sldi.w $w20, $w27[2]
0x78 0x38 0x61 0x19 # CHECK: sldi.d $w4, $w12[0]
0x78 0x42 0x1e 0x59 # CHECK: splati.b $w25, $w3[2]
0x78 0x61 0xe6 0x19 # CHECK: splati.h $w24, $w28[1]
0x78 0x70 0x93 0x59 # CHECK: splati.w $w13, $w18[0]
0x78 0x78 0x0f 0x19 # CHECK: splati.d $w28, $w1[0]
0x78 0xbe 0xc5 0xd9 # CHECK: move.v $w23, $w24

View File

@ -0,0 +1,5 @@
# RUN: llvm-mc --disassemble %s -triple=mips-unknown-linux -mcpu=mips32r2 -mattr=+msa | FileCheck %s
0x79 0x03 0xed 0xd9 # CHECK: insert.b $w23[3], $sp
0x79 0x22 0x2d 0x19 # CHECK: insert.h $w20[2], $5
0x79 0x32 0x7a 0x19 # CHECK: insert.w $w8[2], $15

View File

@ -0,0 +1,3 @@
# RUN: llvm-mc --disassemble %s -triple=mips64-unknown-linux -mcpu=mips64r2 -mattr=+msa | FileCheck %s
0x79 0x39 0xe8 0x59 # CHECK: insert.d $w1[1], $sp

View File

@ -0,0 +1,6 @@
# RUN: llvm-mc --disassemble %s -triple=mips-unknown-linux -mcpu=mips32r2 -mattr=+msa | FileCheck %s
0x79 0x43 0x4e 0x59 # CHECK: insve.b $w25[3], $w9[0]
0x79 0x62 0x16 0x19 # CHECK: insve.h $w24[2], $w2[0]
0x79 0x72 0x68 0x19 # CHECK: insve.w $w0[2], $w13[0]
0x79 0x78 0x90 0xd9 # CHECK: insve.d $w3[0], $w18[0]

View File

@ -0,0 +1,6 @@
# RUN: llvm-mc --disassemble %s -triple=mips64-unknown-linux -mcpu=mips64r2 -mattr=+msa | FileCheck %s
# CHECK: copy_s.d $19, $w31[0]
0x78 0xb8 0xfc 0xd9
# CHECK: copy_u.d $18, $w29[1]
0x78 0xf9 0xec 0x99

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: copy_s.b $13, $w8[2] # encoding: [0x78,0x82,0x43,0x59]
# CHECK: copy_s.h $1, $w25[0] # encoding: [0x78,0xa0,0xc8,0x59]
# CHECK: copy_s.w $22, $w5[1] # encoding: [0x78,0xb1,0x2d,0x99]
@ -20,22 +16,6 @@
# CHECK: splati.d $w28, $w1[0] # encoding: [0x78,0x78,0x0f,0x19]
# CHECK: move.v $w23, $w24 # encoding: [0x78,0xbe,0xc5,0xd9]
# CHECKOBJDUMP: copy_s.b $13, $w8[2]
# CHECKOBJDUMP: copy_s.h $1, $w25[0]
# CHECKOBJDUMP: copy_s.w $22, $w5[1]
# CHECKOBJDUMP: copy_u.b $22, $w20[4]
# CHECKOBJDUMP: copy_u.h $20, $w4[0]
# CHECKOBJDUMP: copy_u.w $fp, $w13[2]
# CHECKOBJDUMP: sldi.b $w0, $w29[4]
# CHECKOBJDUMP: sldi.h $w8, $w17[0]
# CHECKOBJDUMP: sldi.w $w20, $w27[2]
# CHECKOBJDUMP: sldi.d $w4, $w12[0]
# CHECKOBJDUMP: splati.b $w25, $w3[2]
# CHECKOBJDUMP: splati.h $w24, $w28[1]
# CHECKOBJDUMP: splati.w $w13, $w18[0]
# CHECKOBJDUMP: splati.d $w28, $w1[0]
# CHECKOBJDUMP: move.v $w23, $w24
copy_s.b $13, $w8[2]
copy_s.h $1, $w25[0]
copy_s.w $22, $w5[1]

View File

@ -1,17 +1,9 @@
# 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: insert.b $w23[3], $sp # encoding: [0x79,0x03,0xed,0xd9]
# CHECK: insert.h $w20[2], $5 # encoding: [0x79,0x22,0x2d,0x19]
# CHECK: insert.w $w8[2], $15 # encoding: [0x79,0x32,0x7a,0x19]
# CHECKOBJDUMP: insert.b $w23[3], $sp
# CHECKOBJDUMP: insert.h $w20[2], $5
# CHECKOBJDUMP: insert.w $w8[2], $15
insert.b $w23[3], $sp
insert.h $w20[2], $5
insert.w $w8[2], $15

View File

@ -1,11 +1,5 @@
# RUN: llvm-mc %s -arch=mips64 -mcpu=mips64r2 -mattr=+msa -show-encoding | FileCheck %s
#
# RUN: llvm-mc %s -arch=mips64 -mcpu=mips64r2 -mattr=+msa -filetype=obj -o - | \
# RUN: llvm-objdump -d -arch=mips64 -mattr=+msa - | \
# RUN: FileCheck %s -check-prefix=CHECKOBJDUMP
#
# CHECK: insert.d $w1[1], $sp # encoding: [0x79,0x39,0xe8,0x59]
# CHECKOBJDUMP: insert.d $w1[1], $sp
insert.d $w1[1], $sp

View File

@ -1,19 +1,10 @@
# 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: insve.b $w25[3], $w9[0] # encoding: [0x79,0x43,0x4e,0x59]
# CHECK: insve.h $w24[2], $w2[0] # encoding: [0x79,0x62,0x16,0x19]
# CHECK: insve.w $w0[2], $w13[0] # encoding: [0x79,0x72,0x68,0x19]
# CHECK: insve.d $w3[0], $w18[0] # encoding: [0x79,0x78,0x90,0xd9]
# CHECKOBJDUMP: insve.b $w25[3], $w9[0]
# CHECKOBJDUMP: insve.h $w24[2], $w2[0]
# CHECKOBJDUMP: insve.w $w0[2], $w13[0]
# CHECKOBJDUMP: insve.d $w3[0], $w18[0]
insve.b $w25[3], $w9[0]
insve.h $w24[2], $w2[0]
insve.w $w0[2], $w13[0]

View File

@ -1,14 +1,7 @@
# RUN: llvm-mc %s -arch=mips64 -mcpu=mips64r2 -mattr=+msa -show-encoding | FileCheck %s
#
# RUN: llvm-mc %s -arch=mips64 -mcpu=mips64r2 -mattr=+msa -filetype=obj -o - | \
# RUN: llvm-objdump -d -arch=mips64 -mattr=+msa - | \
# RUN: FileCheck %s -check-prefix=CHECKOBJDUMP
#
# CHECK: copy_s.d $19, $w31[0] # encoding: [0x78,0xb8,0xfc,0xd9]
# CHECK: copy_u.d $18, $w29[1] # encoding: [0x78,0xf9,0xec,0x99]
# CHECKOBJDUMP: copy_s.d $19, $w31[0]
# CHECKOBJDUMP: copy_u.d $18, $w29[1]
copy_s.d $19, $w31[0]
copy_u.d $18, $w29[1]