From: Ulrich Weigand Date: Tue, 19 Mar 2013 19:50:30 +0000 (+0000) Subject: Fix sub-operand size mismatch in tocentry operands. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=880d82e3dbf8ae6c2babf5943d524bbe25015eba;p=oota-llvm.git Fix sub-operand size mismatch in tocentry operands. The tocentry operand class refers to 64-bit values (it is only used in 64-bit, where iPTR is a 64-bit type), but its sole suboperand is designated as 32-bit type. This causes a mismatch to be detected at compile-time with the TableGen patch I'll check in shortly. To fix this, this commit changes the suboperand to a 64-bit type as well. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177427 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/PowerPC/PPCInstr64Bit.td b/lib/Target/PowerPC/PPCInstr64Bit.td index 429a9216205..c2fdba13d1f 100644 --- a/lib/Target/PowerPC/PPCInstr64Bit.td +++ b/lib/Target/PowerPC/PPCInstr64Bit.td @@ -30,7 +30,7 @@ def symbolLo64 : Operand { let EncoderMethod = "getLO16Encoding"; } def tocentry : Operand { - let MIOperandInfo = (ops i32imm:$imm); + let MIOperandInfo = (ops i64imm:$imm); } def memrs : Operand { // memri where the immediate is a symbolLo64 let PrintMethod = "printMemRegImm";