mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 00:11:00 +00:00
[mips] Move disassembler tests (Mips MSA test_i*, test_mi10) into correct folder.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208590 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e9cd60685b
commit
d8527e2578
6
test/MC/Disassembler/Mips/msa/test_i10.txt
Normal file
6
test/MC/Disassembler/Mips/msa/test_i10.txt
Normal file
@ -0,0 +1,6 @@
|
||||
# RUN: llvm-mc --disassemble %s -triple=mips-unknown-linux -mcpu=mips32 -mattr=+msa | FileCheck %s
|
||||
|
||||
0x7b 0x06 0x32 0x07 # CHECK: ldi.b $w8, 198
|
||||
0x7b 0x29 0xcd 0x07 # CHECK: ldi.h $w20, 313
|
||||
0x7b 0x4f 0x66 0x07 # CHECK: ldi.w $w24, 492
|
||||
0x7b 0x7a 0x66 0xc7 # CHECK: ldi.d $w27, 844
|
46
test/MC/Disassembler/Mips/msa/test_i5.txt
Normal file
46
test/MC/Disassembler/Mips/msa/test_i5.txt
Normal file
@ -0,0 +1,46 @@
|
||||
# RUN: llvm-mc --disassemble %s -triple=mips-unknown-linux -mcpu=mips32 -mattr=+msa | FileCheck %s
|
||||
|
||||
0x78 0x1e 0xf8 0xc6 # CHECK: addvi.b $w3, $w31, 30
|
||||
0x78 0x3a 0x6e 0x06 # CHECK: addvi.h $w24, $w13, 26
|
||||
0x78 0x5a 0xa6 0x86 # CHECK: addvi.w $w26, $w20, 26
|
||||
0x78 0x75 0x0c 0x06 # CHECK: addvi.d $w16, $w1, 21
|
||||
0x78 0x18 0xae 0x07 # CHECK: ceqi.b $w24, $w21, 24
|
||||
0x78 0x22 0x7f 0xc7 # CHECK: ceqi.h $w31, $w15, 2
|
||||
0x78 0x5f 0x0b 0x07 # CHECK: ceqi.w $w12, $w1, 31
|
||||
0x78 0x67 0xb6 0x07 # CHECK: ceqi.d $w24, $w22, 7
|
||||
0x7a 0x01 0x83 0x07 # CHECK: clei_s.b $w12, $w16, 1
|
||||
0x7a 0x37 0x50 0x87 # CHECK: clei_s.h $w2, $w10, 23
|
||||
0x7a 0x56 0x59 0x07 # CHECK: clei_s.w $w4, $w11, 22
|
||||
0x7a 0x76 0xe8 0x07 # CHECK: clei_s.d $w0, $w29, 22
|
||||
0x7a 0x83 0x8d 0x47 # CHECK: clei_u.b $w21, $w17, 3
|
||||
0x7a 0xb1 0x3f 0x47 # CHECK: clei_u.h $w29, $w7, 17
|
||||
0x7a 0xc2 0x08 0x47 # CHECK: clei_u.w $w1, $w1, 2
|
||||
0x7a 0xfd 0xde 0xc7 # CHECK: clei_u.d $w27, $w27, 29
|
||||
0x79 0x19 0x6c 0xc7 # CHECK: clti_s.b $w19, $w13, 25
|
||||
0x79 0x34 0x53 0xc7 # CHECK: clti_s.h $w15, $w10, 20
|
||||
0x79 0x4b 0x63 0x07 # CHECK: clti_s.w $w12, $w12, 11
|
||||
0x79 0x71 0xa7 0x47 # CHECK: clti_s.d $w29, $w20, 17
|
||||
0x79 0x9d 0x4b 0x87 # CHECK: clti_u.b $w14, $w9, 29
|
||||
0x79 0xb9 0xce 0x07 # CHECK: clti_u.h $w24, $w25, 25
|
||||
0x79 0xd6 0x08 0x47 # CHECK: clti_u.w $w1, $w1, 22
|
||||
0x79 0xe1 0xcd 0x47 # CHECK: clti_u.d $w21, $w25, 1
|
||||
0x79 0x01 0xad 0x86 # CHECK: maxi_s.b $w22, $w21, 1
|
||||
0x79 0x38 0x2f 0x46 # CHECK: maxi_s.h $w29, $w5, 24
|
||||
0x79 0x54 0x50 0x46 # CHECK: maxi_s.w $w1, $w10, 20
|
||||
0x79 0x70 0xeb 0x46 # CHECK: maxi_s.d $w13, $w29, 16
|
||||
0x79 0x8c 0x05 0x06 # CHECK: maxi_u.b $w20, $w0, 12
|
||||
0x79 0xa3 0x70 0x46 # CHECK: maxi_u.h $w1, $w14, 3
|
||||
0x79 0xcb 0xb6 0xc6 # CHECK: maxi_u.w $w27, $w22, 11
|
||||
0x79 0xe4 0x36 0x86 # CHECK: maxi_u.d $w26, $w6, 4
|
||||
0x7a 0x01 0x09 0x06 # CHECK: mini_s.b $w4, $w1, 1
|
||||
0x7a 0x37 0xde 0xc6 # CHECK: mini_s.h $w27, $w27, 23
|
||||
0x7a 0x49 0x5f 0x06 # CHECK: mini_s.w $w28, $w11, 9
|
||||
0x7a 0x6a 0x52 0xc6 # CHECK: mini_s.d $w11, $w10, 10
|
||||
0x7a 0x9b 0xbc 0x86 # CHECK: mini_u.b $w18, $w23, 27
|
||||
0x7a 0xb2 0xd1 0xc6 # CHECK: mini_u.h $w7, $w26, 18
|
||||
0x7a 0xda 0x62 0xc6 # CHECK: mini_u.w $w11, $w12, 26
|
||||
0x7a 0xe2 0x7a 0xc6 # CHECK: mini_u.d $w11, $w15, 2
|
||||
0x78 0x93 0xa6 0x06 # CHECK: subvi.b $w24, $w20, 19
|
||||
0x78 0xa4 0x9a 0xc6 # CHECK: subvi.h $w11, $w19, 4
|
||||
0x78 0xcb 0x53 0x06 # CHECK: subvi.w $w12, $w10, 11
|
||||
0x78 0xe7 0x84 0xc6 # CHECK: subvi.d $w19, $w16, 7
|
12
test/MC/Disassembler/Mips/msa/test_i8.txt
Normal file
12
test/MC/Disassembler/Mips/msa/test_i8.txt
Normal file
@ -0,0 +1,12 @@
|
||||
# RUN: llvm-mc --disassemble %s -triple=mips-unknown-linux -mcpu=mips32 -mattr=+msa | FileCheck %s
|
||||
|
||||
0x78 0x30 0xe8 0x80 # CHECK: andi.b $w2, $w29, 48
|
||||
0x78 0x7e 0xb1 0x81 # CHECK: bmnzi.b $w6, $w22, 126
|
||||
0x79 0x58 0x0e 0xc1 # CHECK: bmzi.b $w27, $w1, 88
|
||||
0x7a 0xbd 0x1f 0x41 # CHECK: bseli.b $w29, $w3, 189
|
||||
0x7a 0x38 0x88 0x40 # CHECK: nori.b $w1, $w17, 56
|
||||
0x79 0x87 0xa6 0x80 # CHECK: ori.b $w26, $w20, 135
|
||||
0x78 0x69 0xf4 0xc2 # CHECK: shf.b $w19, $w30, 105
|
||||
0x79 0x4c 0x44 0x42 # CHECK: shf.h $w17, $w8, 76
|
||||
0x7a 0x5d 0x1b 0x82 # CHECK: shf.w $w14, $w3, 93
|
||||
0x7b 0x14 0x54 0x00 # CHECK: xori.b $w16, $w10, 20
|
28
test/MC/Disassembler/Mips/msa/test_mi10.txt
Normal file
28
test/MC/Disassembler/Mips/msa/test_mi10.txt
Normal file
@ -0,0 +1,28 @@
|
||||
# RUN: llvm-mc --disassemble %s -triple=mips-unknown-linux -mcpu=mips32 -mattr=+msa | FileCheck %s
|
||||
|
||||
0x7a 0x00 0x08 0x20 # CHECK: ld.b $w0, -512($1)
|
||||
0x78 0x00 0x10 0x60 # CHECK: ld.b $w1, 0($2)
|
||||
0x79 0xff 0x18 0xa0 # CHECK: ld.b $w2, 511($3)
|
||||
|
||||
0x7a 0x00 0x20 0xe1 # CHECK: ld.h $w3, -1024($4)
|
||||
0x7b 0x00 0x29 0x21 # CHECK: ld.h $w4, -512($5)
|
||||
0x78 0x00 0x31 0x61 # CHECK: ld.h $w5, 0($6)
|
||||
0x79 0x00 0x39 0xa1 # CHECK: ld.h $w6, 512($7)
|
||||
0x79 0xff 0x41 0xe1 # CHECK: ld.h $w7, 1022($8)
|
||||
|
||||
0x7a 0x00 0x4a 0x22 # CHECK: ld.w $w8, -2048($9)
|
||||
0x7b 0x00 0x52 0x62 # CHECK: ld.w $w9, -1024($10)
|
||||
0x7b 0x80 0x5a 0xa2 # CHECK: ld.w $w10, -512($11)
|
||||
0x78 0x80 0x62 0xe2 # CHECK: ld.w $w11, 512($12)
|
||||
0x79 0x00 0x6b 0x22 # CHECK: ld.w $w12, 1024($13)
|
||||
0x79 0xff 0x73 0x62 # CHECK: ld.w $w13, 2044($14)
|
||||
|
||||
0x7a 0x00 0x7b 0xa3 # CHECK: ld.d $w14, -4096($15)
|
||||
0x7b 0x00 0x83 0xe3 # CHECK: ld.d $w15, -2048($16)
|
||||
0x7b 0x80 0x8c 0x23 # CHECK: ld.d $w16, -1024($17)
|
||||
0x7b 0xc0 0x94 0x63 # CHECK: ld.d $w17, -512($18)
|
||||
0x78 0x00 0x9c 0xa3 # CHECK: ld.d $w18, 0($19)
|
||||
0x78 0x40 0xa4 0xe3 # CHECK: ld.d $w19, 512($20)
|
||||
0x78 0x80 0xad 0x23 # CHECK: ld.d $w20, 1024($21)
|
||||
0x79 0x00 0xb5 0x63 # CHECK: ld.d $w21, 2048($22)
|
||||
0x79 0xff 0xbd 0xa3 # CHECK: ld.d $w22, 4088($23)
|
@ -1,20 +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: ldi.b $w8, 198 # encoding: [0x7b,0x06,0x32,0x07]
|
||||
# CHECK: ldi.h $w20, 313 # encoding: [0x7b,0x29,0xcd,0x07]
|
||||
# CHECK: ldi.w $w24, 492 # encoding: [0x7b,0x4f,0x66,0x07]
|
||||
# CHECK: ldi.d $w27, -180 # encoding: [0x7b,0x7a,0x66,0xc7]
|
||||
|
||||
# CHECKOBJDUMP: ldi.b $w8, 198
|
||||
# CHECKOBJDUMP: ldi.h $w20, 313
|
||||
# CHECKOBJDUMP: ldi.w $w24, 492
|
||||
# CHECKOBJDUMP: ldi.d $w27, 844
|
||||
|
||||
ldi.b $w8, 198
|
||||
ldi.h $w20, 313
|
||||
ldi.w $w24, 492
|
||||
|
@ -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: addvi.b $w3, $w31, 30 # encoding: [0x78,0x1e,0xf8,0xc6]
|
||||
# CHECK: addvi.h $w24, $w13, 26 # encoding: [0x78,0x3a,0x6e,0x06]
|
||||
# CHECK: addvi.w $w26, $w20, 26 # encoding: [0x78,0x5a,0xa6,0x86]
|
||||
@ -49,51 +45,6 @@
|
||||
# CHECK: subvi.w $w12, $w10, 11 # encoding: [0x78,0xcb,0x53,0x06]
|
||||
# CHECK: subvi.d $w19, $w16, 7 # encoding: [0x78,0xe7,0x84,0xc6]
|
||||
|
||||
# CHECKOBJDUMP: addvi.b $w3, $w31, 30
|
||||
# CHECKOBJDUMP: addvi.h $w24, $w13, 26
|
||||
# CHECKOBJDUMP: addvi.w $w26, $w20, 26
|
||||
# CHECKOBJDUMP: addvi.d $w16, $w1, 21
|
||||
# CHECKOBJDUMP: ceqi.b $w24, $w21, 24
|
||||
# CHECKOBJDUMP: ceqi.h $w31, $w15, 2
|
||||
# CHECKOBJDUMP: ceqi.w $w12, $w1, 31
|
||||
# CHECKOBJDUMP: ceqi.d $w24, $w22, 7
|
||||
# CHECKOBJDUMP: clei_s.b $w12, $w16, 1
|
||||
# CHECKOBJDUMP: clei_s.h $w2, $w10, 23
|
||||
# CHECKOBJDUMP: clei_s.w $w4, $w11, 22
|
||||
# CHECKOBJDUMP: clei_s.d $w0, $w29, 22
|
||||
# CHECKOBJDUMP: clei_u.b $w21, $w17, 3
|
||||
# CHECKOBJDUMP: clei_u.h $w29, $w7, 17
|
||||
# CHECKOBJDUMP: clei_u.w $w1, $w1, 2
|
||||
# CHECKOBJDUMP: clei_u.d $w27, $w27, 29
|
||||
# CHECKOBJDUMP: clti_s.b $w19, $w13, 25
|
||||
# CHECKOBJDUMP: clti_s.h $w15, $w10, 20
|
||||
# CHECKOBJDUMP: clti_s.w $w12, $w12, 11
|
||||
# CHECKOBJDUMP: clti_s.d $w29, $w20, 17
|
||||
# CHECKOBJDUMP: clti_u.b $w14, $w9, 29
|
||||
# CHECKOBJDUMP: clti_u.h $w24, $w25, 25
|
||||
# CHECKOBJDUMP: clti_u.w $w1, $w1, 22
|
||||
# CHECKOBJDUMP: clti_u.d $w21, $w25, 1
|
||||
# CHECKOBJDUMP: maxi_s.b $w22, $w21, 1
|
||||
# CHECKOBJDUMP: maxi_s.h $w29, $w5, 24
|
||||
# CHECKOBJDUMP: maxi_s.w $w1, $w10, 20
|
||||
# CHECKOBJDUMP: maxi_s.d $w13, $w29, 16
|
||||
# CHECKOBJDUMP: maxi_u.b $w20, $w0, 12
|
||||
# CHECKOBJDUMP: maxi_u.h $w1, $w14, 3
|
||||
# CHECKOBJDUMP: maxi_u.w $w27, $w22, 11
|
||||
# CHECKOBJDUMP: maxi_u.d $w26, $w6, 4
|
||||
# CHECKOBJDUMP: mini_s.b $w4, $w1, 1
|
||||
# CHECKOBJDUMP: mini_s.h $w27, $w27, 23
|
||||
# CHECKOBJDUMP: mini_s.w $w28, $w11, 9
|
||||
# CHECKOBJDUMP: mini_s.d $w11, $w10, 10
|
||||
# CHECKOBJDUMP: mini_u.b $w18, $w23, 27
|
||||
# CHECKOBJDUMP: mini_u.h $w7, $w26, 18
|
||||
# CHECKOBJDUMP: mini_u.w $w11, $w12, 26
|
||||
# CHECKOBJDUMP: mini_u.d $w11, $w15, 2
|
||||
# CHECKOBJDUMP: subvi.b $w24, $w20, 19
|
||||
# CHECKOBJDUMP: subvi.h $w11, $w19, 4
|
||||
# CHECKOBJDUMP: subvi.w $w12, $w10, 11
|
||||
# CHECKOBJDUMP: subvi.d $w19, $w16, 7
|
||||
|
||||
addvi.b $w3, $w31, 30
|
||||
addvi.h $w24, $w13, 26
|
||||
addvi.w $w26, $w20, 26
|
||||
|
@ -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: andi.b $w2, $w29, 48 # encoding: [0x78,0x30,0xe8,0x80]
|
||||
# CHECK: bmnzi.b $w6, $w22, 126 # encoding: [0x78,0x7e,0xb1,0x81]
|
||||
# CHECK: bmzi.b $w27, $w1, 88 # encoding: [0x79,0x58,0x0e,0xc1]
|
||||
@ -15,17 +11,6 @@
|
||||
# CHECK: shf.w $w14, $w3, 93 # encoding: [0x7a,0x5d,0x1b,0x82]
|
||||
# CHECK: xori.b $w16, $w10, 20 # encoding: [0x7b,0x14,0x54,0x00]
|
||||
|
||||
# CHECKOBJDUMP: andi.b $w2, $w29, 48
|
||||
# CHECKOBJDUMP: bmnzi.b $w6, $w22, 126
|
||||
# CHECKOBJDUMP: bmzi.b $w27, $w1, 88
|
||||
# CHECKOBJDUMP: bseli.b $w29, $w3, 189
|
||||
# CHECKOBJDUMP: nori.b $w1, $w17, 56
|
||||
# CHECKOBJDUMP: ori.b $w26, $w20, 135
|
||||
# CHECKOBJDUMP: shf.b $w19, $w30, 105
|
||||
# CHECKOBJDUMP: shf.h $w17, $w8, 76
|
||||
# CHECKOBJDUMP: shf.w $w14, $w3, 93
|
||||
# CHECKOBJDUMP: xori.b $w16, $w10, 20
|
||||
|
||||
andi.b $w2, $w29, 48
|
||||
bmnzi.b $w6, $w22, 126
|
||||
bmzi.b $w27, $w1, 88
|
||||
|
@ -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: ld.b $w0, -512($1) # encoding: [0x7a,0x00,0x08,0x20]
|
||||
# CHECK: ld.b $w1, 0($2) # encoding: [0x78,0x00,0x10,0x60]
|
||||
# CHECK: ld.b $w2, 511($3) # encoding: [0x79,0xff,0x18,0xa0]
|
||||
@ -31,33 +27,6 @@
|
||||
# CHECK: ld.d $w21, 2048($22) # encoding: [0x79,0x00,0xb5,0x63]
|
||||
# CHECK: ld.d $w22, 4088($23) # encoding: [0x79,0xff,0xbd,0xa3]
|
||||
|
||||
# CHECKOBJDUMP: ld.b $w0, -512($1)
|
||||
# CHECKOBJDUMP: ld.b $w1, 0($2)
|
||||
# CHECKOBJDUMP: ld.b $w2, 511($3)
|
||||
|
||||
# CHECKOBJDUMP: ld.h $w3, -1024($4)
|
||||
# CHECKOBJDUMP: ld.h $w4, -512($5)
|
||||
# CHECKOBJDUMP: ld.h $w5, 0($6)
|
||||
# CHECKOBJDUMP: ld.h $w6, 512($7)
|
||||
# CHECKOBJDUMP: ld.h $w7, 1022($8)
|
||||
|
||||
# CHECKOBJDUMP: ld.w $w8, -2048($9)
|
||||
# CHECKOBJDUMP: ld.w $w9, -1024($10)
|
||||
# CHECKOBJDUMP: ld.w $w10, -512($11)
|
||||
# CHECKOBJDUMP: ld.w $w11, 512($12)
|
||||
# CHECKOBJDUMP: ld.w $w12, 1024($13)
|
||||
# CHECKOBJDUMP: ld.w $w13, 2044($14)
|
||||
|
||||
# CHECKOBJDUMP: ld.d $w14, -4096($15)
|
||||
# CHECKOBJDUMP: ld.d $w15, -2048($16)
|
||||
# CHECKOBJDUMP: ld.d $w16, -1024($17)
|
||||
# CHECKOBJDUMP: ld.d $w17, -512($18)
|
||||
# CHECKOBJDUMP: ld.d $w18, 0($19)
|
||||
# CHECKOBJDUMP: ld.d $w19, 512($20)
|
||||
# CHECKOBJDUMP: ld.d $w20, 1024($21)
|
||||
# CHECKOBJDUMP: ld.d $w21, 2048($22)
|
||||
# CHECKOBJDUMP: ld.d $w22, 4088($23)
|
||||
|
||||
ld.b $w0, -512($1)
|
||||
ld.b $w1, 0($2)
|
||||
ld.b $w2, 511($3)
|
||||
|
Loading…
Reference in New Issue
Block a user