llvm.org GIT mirror llvm / 3890a42
X86Disassembler - fixed a bug in immediate print git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206953 91177308-0d34-0410-b5e6-96231b3b80d8 Elena Demikhovsky 6 years ago
2 changed file(s) with 5 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
318318 }
319319 // By default sign-extend all X86 immediates based on their encoding.
320320 else if (type == TYPE_IMM8 || type == TYPE_IMM16 || type == TYPE_IMM32 ||
321 type == TYPE_IMM64) {
321 type == TYPE_IMM64 || type == TYPE_IMMv) {
322322 uint32_t Opcode = mcInst.getOpcode();
323323 switch (operand.encoding) {
324324 default:
4343 # CHECK-NEXT: nop
4444 0xf0 0x90
4545
46 # Test that immediate is printed correctly within opsize prefix
47 # CHECK: addw $-12, %ax
48 0x66,0x83,0xc0,0xf4
49
4650 # Test that multiple redundant prefixes work (redundant, but valid x86).
4751 # CHECK: rep
4852 # CHECK-NEXT: rep