mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 21:32:10 +00:00
[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:
parent
e18828fb2b
commit
e9cd60685b
17
test/MC/Disassembler/Mips/msa/test_elm.txt
Normal file
17
test/MC/Disassembler/Mips/msa/test_elm.txt
Normal 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
|
5
test/MC/Disassembler/Mips/msa/test_elm_insert.txt
Normal file
5
test/MC/Disassembler/Mips/msa/test_elm_insert.txt
Normal 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
|
3
test/MC/Disassembler/Mips/msa/test_elm_insert_msa64.txt
Normal file
3
test/MC/Disassembler/Mips/msa/test_elm_insert_msa64.txt
Normal 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
|
6
test/MC/Disassembler/Mips/msa/test_elm_insve.txt
Normal file
6
test/MC/Disassembler/Mips/msa/test_elm_insve.txt
Normal 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]
|
6
test/MC/Disassembler/Mips/msa/test_elm_msa64.txt
Normal file
6
test/MC/Disassembler/Mips/msa/test_elm_msa64.txt
Normal 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
|
@ -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]
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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]
|
||||
|
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user