74 lines · plain
1@ RUN: not llvm-mc -triple armv7-linux-eabi -filetype asm -o /dev/null 2>&1 %s \2@ RUN: | FileCheck %s3 4 .syntax unified5 6 .type require_fnstart,%function7require_fnstart:8 .unwind_raw 0, 09 10@ CHECK: error: .fnstart must precede .unwind_raw directive11@ CHECK: .unwind_raw 0, 012@ CHECK: ^13 14 .type check_arguments,%function15check_arguments:16 .fnstart17 .unwind_raw18 .fnend19 20@ CHECK: error: expected expression21@ CHECK: .unwind_raw22@ CHECK: ^23 24 .type check_stack_offset,%function25check_stack_offset:26 .fnstart27 .unwind_raw ., 028 .fnend29 30@ CHECK: error: offset must be a constant31@ CHECK: .unwind_raw ., 032@ CHECK: ^33 34 .type comma_check,%function35comma_check:36 .fnstart37 .unwind_raw 038 .fnend39 40@ CHECK: error: expected comma41@ CHECK: .unwind_raw 042@ CHECK: ^43 44 .type require_opcode,%function45require_opcode:46 .fnstart47 .unwind_raw 0,48 .fnend49 50@ CHECK: error: expected opcode expression51@ CHECK: .unwind_raw 0,52@ CHECK: ^53 54 .type require_opcode_constant,%function55require_opcode_constant:56 .fnstart57 .unwind_raw 0, .58 .fnend59 60@ CHECK: error: opcode value must be a constant61@ CHECK: .unwind_raw 0, .62@ CHECK: ^63 64 .type check_opcode_range,%function65check_opcode_range:66 .fnstart67 .unwind_raw 0, 0x10068 .fnend69 70@ CHECK: error: invalid opcode71@ CHECK: .unwind_raw 0, 0x10072@ CHECK: ^73 74