summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2013-10-11 19:05:08 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2013-10-11 19:05:08 +0000
commit8a37f63714fe694c8c8587a32e3345cc44fc0965 (patch)
tree6c314bd7f8c6a5bf2408a33370d72b014dd49a8b /llvm/lib/Target/Mips
parentd616ccc0697fad1cd000ead6cf3ee232abd09cf1 (diff)
downloadbcm5719-llvm-8a37f63714fe694c8c8587a32e3345cc44fc0965.tar.gz
bcm5719-llvm-8a37f63714fe694c8c8587a32e3345cc44fc0965.zip
Mips: Disassemble sign-extended 64 bit immediates properly.
This doesn't change the meaning of the output, but makes look right. PR17539. llvm-svn: 192483
Diffstat (limited to 'llvm/lib/Target/Mips')
-rw-r--r--llvm/lib/Target/Mips/MipsInstrInfo.td4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Target/Mips/MipsInstrInfo.td b/llvm/lib/Target/Mips/MipsInstrInfo.td
index cdc1bae777b..c7487000c41 100644
--- a/llvm/lib/Target/Mips/MipsInstrInfo.td
+++ b/llvm/lib/Target/Mips/MipsInstrInfo.td
@@ -262,7 +262,9 @@ def uimm20 : Operand<i32> {
def uimm10 : Operand<i32> {
}
-def simm16_64 : Operand<i64>;
+def simm16_64 : Operand<i64> {
+ let DecoderMethod = "DecodeSimm16";
+}
// Unsigned Operand
def uimm5 : Operand<i32> {
OpenPOWER on IntegriCloud