[llvm-readobj] - Simplify stack-sizes.test test case.
[llvm-complete.git] / test / MC / ARM / udf-thumb-2-diagnostics.s
blobb27de51a313230726f3205f8cc2c48581b5f9ccc
1 @ RUN: not llvm-mc -triple thumbv7-eabi -mattr +thumb2 %s 2>&1 | FileCheck %s
3 .syntax unified
4 .text
5 .thumb
7 undefined:
8 udfpl
10 @ CHECK: error: instruction 'udf' is not predicable, but condition code specified
11 @ CHECK: udfpl
12 @ CHECK: ^
14 udf #256
16 @ CHECK: error: invalid instruction, any one of the following would fix this:
17 @ CHECK: note: instruction requires: arm-mode
18 @ CHECK: note: operand must be an immediate in the range [0,255]
19 @ CHECK: udf #256
20 @ CHECK: ^
22 udf.w #65536
24 @ CHECK: error: operand must be an immediate in the range [0,65535]
25 @ CHECK: udf.w #65536
26 @ CHECK: ^