@@ -743,7 +743,7 @@ def PPCS16ImmAsmOperand : AsmOperandClass {
743743}
744744def s16imm : Operand<i32> {
745745 let PrintMethod = "printS16ImmOperand";
746- let EncoderMethod = "getImm16Encoding ";
746+ let EncoderMethod = "getImmEncoding<PPC::fixup_ppc_half16> ";
747747 let ParserMatchClass = PPCS16ImmAsmOperand;
748748 let DecoderMethod = "decodeSImmOperand<16>";
749749 let OperandType = "OPERAND_IMMEDIATE";
@@ -754,7 +754,7 @@ def PPCU16ImmAsmOperand : AsmOperandClass {
754754}
755755def u16imm : Operand<i32> {
756756 let PrintMethod = "printU16ImmOperand";
757- let EncoderMethod = "getImm16Encoding ";
757+ let EncoderMethod = "getImmEncoding<PPC::fixup_ppc_half16> ";
758758 let ParserMatchClass = PPCU16ImmAsmOperand;
759759 let DecoderMethod = "decodeUImmOperand<16>";
760760 let OperandType = "OPERAND_IMMEDIATE";
@@ -768,7 +768,7 @@ def s17imm : Operand<i32> {
768768 // to accept immediates in the range -65536..65535 for compatibility with
769769 // the GNU assembler. The operand is treated as 16-bit otherwise.
770770 let PrintMethod = "printS16ImmOperand";
771- let EncoderMethod = "getImm16Encoding ";
771+ let EncoderMethod = "getImmEncoding<PPC::fixup_ppc_half16> ";
772772 let ParserMatchClass = PPCS17ImmAsmOperand;
773773 let DecoderMethod = "decodeSImmOperand<16>";
774774 let OperandType = "OPERAND_IMMEDIATE";
@@ -780,14 +780,14 @@ def PPCS34ImmAsmOperand : AsmOperandClass {
780780}
781781def s34imm : Operand<i64> {
782782 let PrintMethod = "printS34ImmOperand";
783- let EncoderMethod = "getImm34EncodingNoPCRel ";
783+ let EncoderMethod = "getImmEncoding<PPC::fixup_ppc_imm34> ";
784784 let ParserMatchClass = PPCS34ImmAsmOperand;
785785 let DecoderMethod = "decodeSImmOperand<34>";
786786 let OperandType = "OPERAND_IMMEDIATE";
787787}
788788def s34imm_pcrel : Operand<i64> {
789789 let PrintMethod = "printS34ImmOperand";
790- let EncoderMethod = "getImm34EncodingPCRel ";
790+ let EncoderMethod = "getImmEncoding<PPC::fixup_ppc_pcrel34> ";
791791 let ParserMatchClass = PPCS34ImmAsmOperand;
792792 let DecoderMethod = "decodeSImmOperand<34>";
793793 let OperandType = "OPERAND_IMMEDIATE";
0 commit comments