diff options
| author | Oliver Stannard <oliver.stannard@arm.com> | 2017-10-04 09:24:54 +0000 |
|---|---|---|
| committer | Oliver Stannard <oliver.stannard@arm.com> | 2017-10-04 09:24:54 +0000 |
| commit | 878216dd055fc37551b2e248e6a0c2d0c98168de (patch) | |
| tree | 8813bcf3afbd3d53c32df4649b5fc79b32860de6 /llvm/lib/Target | |
| parent | 5a7aae3a80373a71747b1a4754d81b37fee773c7 (diff) | |
| download | bcm5719-llvm-878216dd055fc37551b2e248e6a0c2d0c98168de.tar.gz bcm5719-llvm-878216dd055fc37551b2e248e6a0c2d0c98168de.zip | |
[ARM] Add diag string for movw/movt immediates in assembly
This adds diagnostics for invalid immediate operands to the MOVW and MOVT
instructions (ARM and Thumb).
Differential revision: https://reviews.llvm.org/D31879
llvm-svn: 314888
Diffstat (limited to 'llvm/lib/Target')
| -rw-r--r-- | llvm/lib/Target/ARM/ARMInstrInfo.td | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMInstrInfo.td b/llvm/lib/Target/ARM/ARMInstrInfo.td index af065441ec7..c031f6ff7ac 100644 --- a/llvm/lib/Target/ARM/ARMInstrInfo.td +++ b/llvm/lib/Target/ARM/ARMInstrInfo.td @@ -822,6 +822,7 @@ def imm0_65535_neg : Operand<i32>, ImmLeaf<i32, [{ def Imm0_65535ExprAsmOperand: AsmOperandClass { let Name = "Imm0_65535Expr"; let RenderMethod = "addImmOperands"; + let DiagnosticString = "operand must be an immediate in the range [0,0xffff] or a relocatable expression"; } def imm0_65535_expr : Operand<i32> { |

