diff options
| author | Zoran Jovanovic <zoran.jovanovic@imgtec.com> | 2013-09-14 07:35:41 +0000 |
|---|---|---|
| committer | Zoran Jovanovic <zoran.jovanovic@imgtec.com> | 2013-09-14 07:35:41 +0000 |
| commit | fc26cfcde7161a0366fb64aabb54195a19d6083a (patch) | |
| tree | 83e648eddb2a82232998bb996bd2f5461032222d /llvm/lib | |
| parent | 3671a5441aab4a9685118156db0158cb8b934489 (diff) | |
| download | llvm-fc26cfcde7161a0366fb64aabb54195a19d6083a.zip llvm-fc26cfcde7161a0366fb64aabb54195a19d6083a.tar.gz llvm-fc26cfcde7161a0366fb64aabb54195a19d6083a.tar.bz2 | |
Fixed bug when generating Load Upper Immediate microMIPS instruction.
llvm-svn: 190746
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/Mips/MipsInstrFormats.td | 2 | ||||
| -rw-r--r-- | llvm/lib/Target/Mips/MipsInstrInfo.td | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/Mips/MipsInstrFormats.td b/llvm/lib/Target/Mips/MipsInstrFormats.td index f0d82dc..68872fe 100644 --- a/llvm/lib/Target/Mips/MipsInstrFormats.td +++ b/llvm/lib/Target/Mips/MipsInstrFormats.td @@ -363,7 +363,7 @@ class CLO_FM<bits<6> funct> : StdArch { let rt = rd; } -class LUI_FM { +class LUI_FM : StdArch { bits<5> rt; bits<16> imm16; diff --git a/llvm/lib/Target/Mips/MipsInstrInfo.td b/llvm/lib/Target/Mips/MipsInstrInfo.td index 1c6b3cd..4795969 100644 --- a/llvm/lib/Target/Mips/MipsInstrInfo.td +++ b/llvm/lib/Target/Mips/MipsInstrInfo.td @@ -447,7 +447,7 @@ class shift_rotate_reg<string opstr, RegisterOperand RO, // Load Upper Imediate class LoadUpper<string opstr, RegisterOperand RO, Operand Imm>: InstSE<(outs RO:$rt), (ins Imm:$imm16), !strconcat(opstr, "\t$rt, $imm16"), - [], IIArith, FrmI>, IsAsCheapAsAMove { + [], IIArith, FrmI, opstr>, IsAsCheapAsAMove { let neverHasSideEffects = 1; let isReMaterializable = 1; } |
