Home | History | Annotate | Download | only in ARM
      1 @ RUN: not llvm-mc -triple armv7-linux-eabi -filetype asm -o /dev/null 2>&1 %s \
      2 @ RUN:   | FileCheck %s
      3 
      4 	.syntax unified
      5 
      6 	.type require_fnstart,%function
      7 require_fnstart:
      8 	.unwind_raw 0, 0
      9 
     10 @ CHECK: error: .fnstart must precede .unwind_raw directive
     11 @ CHECK: 	.unwind_raw 0, 0
     12 @ CHECK:        ^
     13 
     14 	.type check_arguments,%function
     15 check_arguments:
     16 	.fnstart
     17 	.unwind_raw
     18 	.fnend
     19 
     20 @ CHECK: error: expected expression
     21 @ CHECK: 	.unwind_raw
     22 @ CHECK:                   ^
     23 
     24 	.type check_stack_offset,%function
     25 check_stack_offset:
     26 	.fnstart
     27 	.unwind_raw ., 0
     28 	.fnend
     29 
     30 @ CHECK: error: offset must be a constant
     31 @ CHECK: 	.unwind_raw ., 0
     32 @ CHECK:                    ^
     33 
     34 	.type comma_check,%function
     35 comma_check:
     36 	.fnstart
     37 	.unwind_raw 0
     38 	.fnend
     39 
     40 @ CHECK: error: expected comma
     41 @ CHECK: 	.unwind_raw 0
     42 @ CHECK:                     ^
     43 
     44 	.type require_opcode,%function
     45 require_opcode:
     46 	.fnstart
     47 	.unwind_raw 0,
     48 	.fnend
     49 
     50 @ CHECK: error: expected opcode expression
     51 @ CHECK: 	.unwind_raw 0,
     52 @ CHECK:                      ^
     53 
     54 	.type require_opcode_constant,%function
     55 require_opcode_constant:
     56 	.fnstart
     57 	.unwind_raw 0, .
     58 	.fnend
     59 
     60 @ CHECK: error: opcode value must be a constant
     61 @ CHECK: 	.unwind_raw 0, .
     62 @ CHECK:                       ^
     63 
     64 	.type check_opcode_range,%function
     65 check_opcode_range:
     66 	.fnstart
     67 	.unwind_raw 0, 0x100
     68 	.fnend
     69 
     70 @ CHECK: error: invalid opcode
     71 @ CHECK: 	.unwind_raw 0, 0x100
     72 @ CHECK:                       ^
     73 
     74