summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips/MCTargetDesc/MipsMCCodeEmitter.cpp
diff options
context:
space:
mode:
authorSimon Dardis <simon.dardis@mips.com>2017-12-19 11:16:22 +0000
committerSimon Dardis <simon.dardis@mips.com>2017-12-19 11:16:22 +0000
commit1ade566c451c1aa7f0dc70d2a4e37874d5105c2c (patch)
tree883fa7e6ee50fd37e6ca0cdd688641f3ecb07c3b /llvm/lib/Target/Mips/MCTargetDesc/MipsMCCodeEmitter.cpp
parent800d4371f31a80fd7cba643257191955c68e2444 (diff)
downloadbcm5719-llvm-1ade566c451c1aa7f0dc70d2a4e37874d5105c2c.tar.gz
bcm5719-llvm-1ade566c451c1aa7f0dc70d2a4e37874d5105c2c.zip
[mips] Handle the emission of microMIPSr6 sll instruction when used as a nop.
This instruction is encoded as zero, so we have handle that case when checking for unimplemented opcodes when producing the encoding for an instruction. llvm-svn: 321066
Diffstat (limited to 'llvm/lib/Target/Mips/MCTargetDesc/MipsMCCodeEmitter.cpp')
-rw-r--r--llvm/lib/Target/Mips/MCTargetDesc/MipsMCCodeEmitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/Mips/MCTargetDesc/MipsMCCodeEmitter.cpp b/llvm/lib/Target/Mips/MCTargetDesc/MipsMCCodeEmitter.cpp
index ac81e620745..2f6dd0035de 100644
--- a/llvm/lib/Target/Mips/MCTargetDesc/MipsMCCodeEmitter.cpp
+++ b/llvm/lib/Target/Mips/MCTargetDesc/MipsMCCodeEmitter.cpp
@@ -188,7 +188,7 @@ encodeInstruction(const MCInst &MI, raw_ostream &OS,
// so we have to special check for them.
unsigned Opcode = TmpInst.getOpcode();
if ((Opcode != Mips::NOP) && (Opcode != Mips::SLL) &&
- (Opcode != Mips::SLL_MM) && !Binary)
+ (Opcode != Mips::SLL_MM) && (Opcode != Mips::SLL_MMR6) && !Binary)
llvm_unreachable("unimplemented opcode in encodeInstruction()");
int NewOpcode = -1;
OpenPOWER on IntegriCloud