From 21f984966df619abbc9cff82d4dc692d7360420e Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Mon, 5 Jan 2015 08:18:59 +0000 Subject: [PATCH] [X86] Fix the immediate size to match the address size in the operand types for the move to/from absolute memory instructions. llvm-svn: 225152 --- llvm/lib/Target/X86/X86InstrInfo.td | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/llvm/lib/Target/X86/X86InstrInfo.td b/llvm/lib/Target/X86/X86InstrInfo.td index 5a9b51a..46fb4d2 100644 --- a/llvm/lib/Target/X86/X86InstrInfo.td +++ b/llvm/lib/Target/X86/X86InstrInfo.td @@ -554,31 +554,31 @@ def dstidx64 : Operand { let PrintMethod = "printDstIdx64"; } def offset16_8 : Operand { let ParserMatchClass = X86MemOffs16_8AsmOperand; - let MIOperandInfo = (ops i64imm, i8imm); + let MIOperandInfo = (ops i16imm, i8imm); let PrintMethod = "printMemOffs8"; } def offset16_16 : Operand { let ParserMatchClass = X86MemOffs16_16AsmOperand; - let MIOperandInfo = (ops i64imm, i8imm); + let MIOperandInfo = (ops i16imm, i8imm); let PrintMethod = "printMemOffs16"; } def offset16_32 : Operand { let ParserMatchClass = X86MemOffs16_32AsmOperand; - let MIOperandInfo = (ops i64imm, i8imm); + let MIOperandInfo = (ops i16imm, i8imm); let PrintMethod = "printMemOffs32"; } def offset32_8 : Operand { let ParserMatchClass = X86MemOffs32_8AsmOperand; - let MIOperandInfo = (ops i64imm, i8imm); + let MIOperandInfo = (ops i32imm, i8imm); let PrintMethod = "printMemOffs8"; } def offset32_16 : Operand { let ParserMatchClass = X86MemOffs32_16AsmOperand; - let MIOperandInfo = (ops i64imm, i8imm); + let MIOperandInfo = (ops i32imm, i8imm); let PrintMethod = "printMemOffs16"; } def offset32_32 : Operand { let ParserMatchClass = X86MemOffs32_32AsmOperand; - let MIOperandInfo = (ops i64imm, i8imm); + let MIOperandInfo = (ops i32imm, i8imm); let PrintMethod = "printMemOffs32"; } def offset32_64 : Operand { let ParserMatchClass = X86MemOffs32_64AsmOperand; - let MIOperandInfo = (ops i64imm, i8imm); + let MIOperandInfo = (ops i32imm, i8imm); let PrintMethod = "printMemOffs64"; } def offset64_8 : Operand { let ParserMatchClass = X86MemOffs64_8AsmOperand; -- 2.7.4