linux-packaging-mono/external/llvm/test/MC/ARM/udf-thumb-2-diagnostics.s
Xamarin Public Jenkins (auto-signing) f32dbaf0b2 Imported Upstream version 5.18.0.225
Former-commit-id: 10196d987d5fc5564b9d3b33b1fdf13190f4d0b5
2018-12-21 19:01:49 +00:00

28 lines
599 B
ArmAsm

@ RUN: not llvm-mc -triple thumbv7-eabi -mattr +thumb2 %s 2>&1 | FileCheck %s
.syntax unified
.text
.thumb
undefined:
udfpl
@ CHECK: error: instruction 'udf' is not predicable, but condition code specified
@ CHECK: udfpl
@ CHECK: ^
udf #256
@ CHECK: error: invalid instruction, any one of the following would fix this:
@ CHECK: note: instruction requires: arm-mode
@ CHECK: note: operand must be an immediate in the range [0,255]
@ CHECK: udf #256
@ CHECK: ^
udf.w #65536
@ CHECK: error: operand must be an immediate in the range [0,65535]
@ CHECK: udf.w #65536
@ CHECK: ^