diff options
author | Matheus Almeida <matheus.almeida@imgtec.com> | 2013-10-21 12:26:50 +0000 |
---|---|---|
committer | Matheus Almeida <matheus.almeida@imgtec.com> | 2013-10-21 12:26:50 +0000 |
commit | 006cff8d7b60ddf632f8642f01693dace7827d8b (patch) | |
tree | 9789dabdb04ff17f902100ce5385d30a57334644 /test | |
parent | cebd4010222f28bb68c217047fd0b2c90498f7ca (diff) | |
download | external_llvm-006cff8d7b60ddf632f8642f01693dace7827d8b.zip external_llvm-006cff8d7b60ddf632f8642f01693dace7827d8b.tar.gz external_llvm-006cff8d7b60ddf632f8642f01693dace7827d8b.tar.bz2 |
[mips][msa] Direct Object Emission support for CTCMSA and CFCMSA.
These instructions are logically related as they allow read/write of MSA control registers.
Currently MSA control registers are emitted by number but hopefully that will change as soon
as GAS starts accepting them by name as that would make the assembly easier to read.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193078 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/MC/Mips/msa/test_ctrlregs.s | 105 |
1 files changed, 105 insertions, 0 deletions
diff --git a/test/MC/Mips/msa/test_ctrlregs.s b/test/MC/Mips/msa/test_ctrlregs.s new file mode 100644 index 0000000..f8f4f9e --- /dev/null +++ b/test/MC/Mips/msa/test_ctrlregs.s @@ -0,0 +1,105 @@ +# RUN: llvm-mc %s -triple=mipsel-unknown-linux -show-encoding -mcpu=mips32r2 -mattr=+msa -arch=mips | FileCheck %s +# +# RUN: llvm-mc %s -triple=mipsel-unknown-linux -mcpu=mips32r2 -mattr=+msa -arch=mips -filetype=obj -o - | llvm-objdump -d -triple=mipsel-unknown-linux -mattr=+msa -arch=mips - | 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] +#CHECK: cfcmsa $2, $1 # encoding: [0x78,0x7e,0x08,0x99] +#CHECK: cfcmsa $3, $2 # encoding: [0x78,0x7e,0x10,0xd9] +#CHECK: cfcmsa $3, $2 # encoding: [0x78,0x7e,0x10,0xd9] +#CHECK: cfcmsa $4, $3 # encoding: [0x78,0x7e,0x19,0x19] +#CHECK: cfcmsa $4, $3 # encoding: [0x78,0x7e,0x19,0x19] +#CHECK: cfcmsa $5, $4 # encoding: [0x78,0x7e,0x21,0x59] +#CHECK: cfcmsa $5, $4 # encoding: [0x78,0x7e,0x21,0x59] +#CHECK: cfcmsa $6, $5 # encoding: [0x78,0x7e,0x29,0x99] +#CHECK: cfcmsa $6, $5 # encoding: [0x78,0x7e,0x29,0x99] +#CHECK: cfcmsa $7, $6 # encoding: [0x78,0x7e,0x31,0xd9] +#CHECK: cfcmsa $7, $6 # encoding: [0x78,0x7e,0x31,0xd9] +#CHECK: cfcmsa $8, $7 # encoding: [0x78,0x7e,0x3a,0x19] +#CHECK: cfcmsa $8, $7 # encoding: [0x78,0x7e,0x3a,0x19] + +#CHECK: ctcmsa $0, $1 # encoding: [0x78,0x3e,0x08,0x19] +#CHECK: ctcmsa $0, $1 # encoding: [0x78,0x3e,0x08,0x19] +#CHECK: ctcmsa $1, $2 # encoding: [0x78,0x3e,0x10,0x59] +#CHECK: ctcmsa $1, $2 # encoding: [0x78,0x3e,0x10,0x59] +#CHECK: ctcmsa $2, $3 # encoding: [0x78,0x3e,0x18,0x99] +#CHECK: ctcmsa $2, $3 # encoding: [0x78,0x3e,0x18,0x99] +#CHECK: ctcmsa $3, $4 # encoding: [0x78,0x3e,0x20,0xd9] +#CHECK: ctcmsa $3, $4 # encoding: [0x78,0x3e,0x20,0xd9] +#CHECK: ctcmsa $4, $5 # encoding: [0x78,0x3e,0x29,0x19] +#CHECK: ctcmsa $4, $5 # encoding: [0x78,0x3e,0x29,0x19] +#CHECK: ctcmsa $5, $6 # encoding: [0x78,0x3e,0x31,0x59] +#CHECK: ctcmsa $5, $6 # encoding: [0x78,0x3e,0x31,0x59] +#CHECK: ctcmsa $6, $7 # encoding: [0x78,0x3e,0x39,0x99] +#CHECK: ctcmsa $6, $7 # encoding: [0x78,0x3e,0x39,0x99] +#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 +cfcmsa $2, $1 +cfcmsa $3, $msaaccess +cfcmsa $3, $2 +cfcmsa $4, $msasave +cfcmsa $4, $3 +cfcmsa $5, $msamodify +cfcmsa $5, $4 +cfcmsa $6, $msarequest +cfcmsa $6, $5 +cfcmsa $7, $msamap +cfcmsa $7, $6 +cfcmsa $8, $msaunmap +cfcmsa $8, $7 + +ctcmsa $msair, $1 +ctcmsa $0, $1 +ctcmsa $msacsr, $2 +ctcmsa $1, $2 +ctcmsa $msaaccess, $3 +ctcmsa $2, $3 +ctcmsa $msasave, $4 +ctcmsa $3, $4 +ctcmsa $msamodify, $5 +ctcmsa $4, $5 +ctcmsa $msarequest, $6 +ctcmsa $5, $6 +ctcmsa $msamap, $7 +ctcmsa $6, $7 +ctcmsa $msaunmap, $8 +ctcmsa $7, $8 |