Fix #13241, a bug around shift immediate operand for ARM instruction ADR.
[oota-llvm.git] / lib / Target / ARM / ARMInstrInfo.td
index 4da90c8bec022e3ad8e196e10c4a18d5b9944797..754beb35cad25447ea882483f45e42ad16ebd448 100644 (file)
@@ -416,8 +416,11 @@ def pclabel : Operand<i32> {
 }
 
 // ADR instruction labels.
+def AdrLabelAsmOperand : AsmOperandClass { let Name = "AdrLabel"; }
 def adrlabel : Operand<i32> {
   let EncoderMethod = "getAdrLabelOpValue";
+  let ParserMatchClass = AdrLabelAsmOperand;
+  let PrintMethod = "printAdrLabelOperand";
 }
 
 def neon_vcvt_imm32 : Operand<i32> {