Mips: Disassemble sign-extended 64 bit immediates properly.

This doesn't change the meaning of the output, but makes look right. PR17539.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192483 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Benjamin Kramer 2013-10-11 19:05:08 +00:00
parent 8573384010
commit 5af763cb2a
2 changed files with 6 additions and 1 deletions

View File

@ -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> {

View File

@ -2,6 +2,9 @@
# CHECK: daddiu $11, $26, 31949
0x67 0x4b 0x7c 0xcd
# CHECK: daddiu $sp, $sp, -32
0x67 0xbd 0xff 0xe0
# CHECK: daddu $26, $1, $11
0x00 0x2b 0xd0 0x2d