diff options
author | Matheus Almeida <matheus.almeida@imgtec.com> | 2013-10-23 13:20:07 +0000 |
---|---|---|
committer | Matheus Almeida <matheus.almeida@imgtec.com> | 2013-10-23 13:20:07 +0000 |
commit | f7b6bac2629c09b5dcdf9dd926c02490d2c81cd2 (patch) | |
tree | 4796ee4223ac1149b9769b0f3f5442d3a7d04ed2 /lib/Target/Mips/MipsMSAInstrInfo.td | |
parent | 09c7f4026afa46ca7ca67d47179013a340a5e944 (diff) | |
download | llvm-f7b6bac2629c09b5dcdf9dd926c02490d2c81cd2.tar.gz llvm-f7b6bac2629c09b5dcdf9dd926c02490d2c81cd2.tar.bz2 llvm-f7b6bac2629c09b5dcdf9dd926c02490d2c81cd2.tar.xz |
[mips][msa] Direct Object Emission support for the LSA instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193240 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsMSAInstrInfo.td')
-rw-r--r-- | lib/Target/Mips/MipsMSAInstrInfo.td | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/Target/Mips/MipsMSAInstrInfo.td b/lib/Target/Mips/MipsMSAInstrInfo.td index 492e82830a..25b3283669 100644 --- a/lib/Target/Mips/MipsMSAInstrInfo.td +++ b/lib/Target/Mips/MipsMSAInstrInfo.td @@ -771,7 +771,7 @@ class LDI_H_ENC : MSA_I10_FMT<0b010, 0b01, 0b001100>; class LDI_W_ENC : MSA_I10_FMT<0b010, 0b10, 0b001100>; class LDI_D_ENC : MSA_I10_FMT<0b010, 0b11, 0b001100>; -class LSA_ENC : SPECIAL_LSA_FMT; +class LSA_ENC : SPECIAL_LSA_FMT<0b000101>; class MADD_Q_H_ENC : MSA_3RF_FMT<0b0101, 0b0, 0b011100>; class MADD_Q_W_ENC : MSA_3RF_FMT<0b0101, 0b1, 0b011100>; @@ -2071,11 +2071,12 @@ class LDI_W_DESC : MSA_I10_LDI_DESC_BASE<"ldi.w", MSA128WOpnd>; class LDI_D_DESC : MSA_I10_LDI_DESC_BASE<"ldi.d", MSA128DOpnd>; class LSA_DESC { - dag OutOperandList = (outs GPR32:$rd); - dag InOperandList = (ins GPR32:$rs, GPR32:$rt, uimm2:$sa); + dag OutOperandList = (outs GPR32Opnd:$rd); + dag InOperandList = (ins GPR32Opnd:$rs, GPR32Opnd:$rt, uimm2:$sa); string AsmString = "lsa\t$rd, $rs, $rt, $sa"; - list<dag> Pattern = [(set GPR32:$rd, (add GPR32:$rs, (shl GPR32:$rt, - immZExt2Lsa:$sa)))]; + list<dag> Pattern = [(set GPR32Opnd:$rd, (add GPR32Opnd:$rs, + (shl GPR32Opnd:$rt, + immZExt2Lsa:$sa)))]; InstrItinClass Itinerary = NoItinerary; } |