From f66682715625bdfb61f244ca5313b368b2877444 Mon Sep 17 00:00:00 2001 From: Matheus Almeida Date: Mon, 12 May 2014 16:16:59 +0000 Subject: [PATCH] [mips] Move disassembler test (Mips MSA test_ctrlregs) into correct folder. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208587 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../Disassembler/Mips/msa/test_ctrlregs.txt | 35 +++++++++++++++++ test/MC/Mips/msa/test_ctrlregs.s | 38 ------------------- 2 files changed, 35 insertions(+), 38 deletions(-) create mode 100644 test/MC/Disassembler/Mips/msa/test_ctrlregs.txt diff --git a/test/MC/Disassembler/Mips/msa/test_ctrlregs.txt b/test/MC/Disassembler/Mips/msa/test_ctrlregs.txt new file mode 100644 index 00000000000..fb5b0be7ffe --- /dev/null +++ b/test/MC/Disassembler/Mips/msa/test_ctrlregs.txt @@ -0,0 +1,35 @@ +# RUN: llvm-mc --disassemble %s -triple=mips-unknown-linux -mcpu=mips32r2 -mattr=+msa | FileCheck %s + +0x78 0x7e 0x00 0x59 # CHECK: cfcmsa $1, $0 +0x78 0x7e 0x00 0x59 # CHECK: cfcmsa $1, $0 +0x78 0x7e 0x08 0x99 # CHECK: cfcmsa $2, $1 +0x78 0x7e 0x08 0x99 # CHECK: cfcmsa $2, $1 +0x78 0x7e 0x10 0xd9 # CHECK: cfcmsa $3, $2 +0x78 0x7e 0x10 0xd9 # CHECK: cfcmsa $3, $2 +0x78 0x7e 0x19 0x19 # CHECK: cfcmsa $4, $3 +0x78 0x7e 0x19 0x19 # CHECK: cfcmsa $4, $3 +0x78 0x7e 0x21 0x59 # CHECK: cfcmsa $5, $4 +0x78 0x7e 0x21 0x59 # CHECK: cfcmsa $5, $4 +0x78 0x7e 0x29 0x99 # CHECK: cfcmsa $6, $5 +0x78 0x7e 0x29 0x99 # CHECK: cfcmsa $6, $5 +0x78 0x7e 0x31 0xd9 # CHECK: cfcmsa $7, $6 +0x78 0x7e 0x31 0xd9 # CHECK: cfcmsa $7, $6 +0x78 0x7e 0x3a 0x19 # CHECK: cfcmsa $8, $7 +0x78 0x7e 0x3a 0x19 # CHECK: cfcmsa $8, $7 + +0x78 0x3e 0x08 0x19 # CHECK: ctcmsa $0, $1 +0x78 0x3e 0x08 0x19 # CHECK: ctcmsa $0, $1 +0x78 0x3e 0x10 0x59 # CHECK: ctcmsa $1, $2 +0x78 0x3e 0x10 0x59 # CHECK: ctcmsa $1, $2 +0x78 0x3e 0x18 0x99 # CHECK: ctcmsa $2, $3 +0x78 0x3e 0x18 0x99 # CHECK: ctcmsa $2, $3 +0x78 0x3e 0x20 0xd9 # CHECK: ctcmsa $3, $4 +0x78 0x3e 0x20 0xd9 # CHECK: ctcmsa $3, $4 +0x78 0x3e 0x29 0x19 # CHECK: ctcmsa $4, $5 +0x78 0x3e 0x29 0x19 # CHECK: ctcmsa $4, $5 +0x78 0x3e 0x31 0x59 # CHECK: ctcmsa $5, $6 +0x78 0x3e 0x31 0x59 # CHECK: ctcmsa $5, $6 +0x78 0x3e 0x39 0x99 # CHECK: ctcmsa $6, $7 +0x78 0x3e 0x39 0x99 # CHECK: ctcmsa $6, $7 +0x78 0x3e 0x41 0xd9 # CHECK: ctcmsa $7, $8 +0x78 0x3e 0x41 0xd9 # CHECK: ctcmsa $7, $8 diff --git a/test/MC/Mips/msa/test_ctrlregs.s b/test/MC/Mips/msa/test_ctrlregs.s index a014c031b3d..3329072b310 100644 --- a/test/MC/Mips/msa/test_ctrlregs.s +++ b/test/MC/Mips/msa/test_ctrlregs.s @@ -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: cfcmsa $1, $0 # encoding: [0x78,0x7e,0x00,0x59] #CHECK: cfcmsa $1, $0 # encoding: [0x78,0x7e,0x00,0x59] #CHECK: cfcmsa $2, $1 # encoding: [0x78,0x7e,0x08,0x99] @@ -38,40 +34,6 @@ #CHECK: ctcmsa $7, $8 # encoding: [0x78,0x3e,0x41,0xd9] #CHECK: ctcmsa $7, $8 # encoding: [0x78,0x3e,0x41,0xd9] -#CHECKOBJDUMP: cfcmsa $1, $0 -#CHECKOBJDUMP: cfcmsa $1, $0 -#CHECKOBJDUMP: cfcmsa $2, $1 -#CHECKOBJDUMP: cfcmsa $2, $1 -#CHECKOBJDUMP: cfcmsa $3, $2 -#CHECKOBJDUMP: cfcmsa $3, $2 -#CHECKOBJDUMP: cfcmsa $4, $3 -#CHECKOBJDUMP: cfcmsa $4, $3 -#CHECKOBJDUMP: cfcmsa $5, $4 -#CHECKOBJDUMP: cfcmsa $5, $4 -#CHECKOBJDUMP: cfcmsa $6, $5 -#CHECKOBJDUMP: cfcmsa $6, $5 -#CHECKOBJDUMP: cfcmsa $7, $6 -#CHECKOBJDUMP: cfcmsa $7, $6 -#CHECKOBJDUMP: cfcmsa $8, $7 -#CHECKOBJDUMP: cfcmsa $8, $7 - -#CHECKOBJDUMP: ctcmsa $0, $1 -#CHECKOBJDUMP: ctcmsa $0, $1 -#CHECKOBJDUMP: ctcmsa $1, $2 -#CHECKOBJDUMP: ctcmsa $1, $2 -#CHECKOBJDUMP: ctcmsa $2, $3 -#CHECKOBJDUMP: ctcmsa $2, $3 -#CHECKOBJDUMP: ctcmsa $3, $4 -#CHECKOBJDUMP: ctcmsa $3, $4 -#CHECKOBJDUMP: ctcmsa $4, $5 -#CHECKOBJDUMP: ctcmsa $4, $5 -#CHECKOBJDUMP: ctcmsa $5, $6 -#CHECKOBJDUMP: ctcmsa $5, $6 -#CHECKOBJDUMP: ctcmsa $6, $7 -#CHECKOBJDUMP: ctcmsa $6, $7 -#CHECKOBJDUMP: ctcmsa $7, $8 -#CHECKOBJDUMP: ctcmsa $7, $8 - cfcmsa $1, $msair cfcmsa $1, $0 cfcmsa $2, $msacsr