[llvm-readobj] - Simplify stack-sizes.test test case.
[llvm-complete.git] / test / MC / ARM / eh-directive-unwind_raw-diagnostics.s
blob72a208ed83d1c53dfea5162f40dd4392a9388975
1 @ RUN: not llvm-mc -triple armv7-linux-eabi -filetype asm -o /dev/null 2>&1 %s \
2 @ RUN: | FileCheck %s
4 .syntax unified
6 .type require_fnstart,%function
7 require_fnstart:
8 .unwind_raw 0, 0
10 @ CHECK: error: .fnstart must precede .unwind_raw directive
11 @ CHECK: .unwind_raw 0, 0
12 @ CHECK: ^
14 .type check_arguments,%function
15 check_arguments:
16 .fnstart
17 .unwind_raw
18 .fnend
20 @ CHECK: error: expected expression
21 @ CHECK: .unwind_raw
22 @ CHECK: ^
24 .type check_stack_offset,%function
25 check_stack_offset:
26 .fnstart
27 .unwind_raw ., 0
28 .fnend
30 @ CHECK: error: offset must be a constant
31 @ CHECK: .unwind_raw ., 0
32 @ CHECK: ^
34 .type comma_check,%function
35 comma_check:
36 .fnstart
37 .unwind_raw 0
38 .fnend
40 @ CHECK: error: expected comma
41 @ CHECK: .unwind_raw 0
42 @ CHECK: ^
44 .type require_opcode,%function
45 require_opcode:
46 .fnstart
47 .unwind_raw 0,
48 .fnend
50 @ CHECK: error: expected opcode expression
51 @ CHECK: .unwind_raw 0,
52 @ CHECK: ^
54 .type require_opcode_constant,%function
55 require_opcode_constant:
56 .fnstart
57 .unwind_raw 0, .
58 .fnend
60 @ CHECK: error: opcode value must be a constant
61 @ CHECK: .unwind_raw 0, .
62 @ CHECK: ^
64 .type check_opcode_range,%function
65 check_opcode_range:
66 .fnstart
67 .unwind_raw 0, 0x100
68 .fnend
70 @ CHECK: error: invalid opcode
71 @ CHECK: .unwind_raw 0, 0x100
72 @ CHECK: ^