mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
83256a5d2d
This consolidates the duplicated MachO checks in the directive parsing for various directives that are unsupported for Mach-O. The error message change is unimportant as this restores the behaviour to that prior to the addition of the new directive handling. Furthermore, use a more direct check for MachO targeting rather than an indirect feature check of the assembler. Also simplify the test execution command to avoid temporary files. Further more, perform the check in both object and assembly emission. Whether all non-applicable directives are handled is another question. .fnstart is marked as being unsupported, however, the complementary .fnend is not. The additional unwinding directives are also still honoured. This change does not change that, though, it would be good to validate and mark them as being unsupported if they are unsupported for the MachO emission. llvm-svn: 205678
30 lines
672 B
ArmAsm
30 lines
672 B
ArmAsm
@ RUN: not llvm-mc -n -triple armv7-apple-darwin10 %s -filetype asm -o /dev/null 2>&1 \
|
|
@ RUN: | FileCheck --check-prefix CHECK-ERROR %s
|
|
|
|
@ RUN: not llvm-mc -n -triple armv7-apple-darwin10 %s -filetype obj -o /dev/null 2>&1 \
|
|
@ RUN: | FileCheck --check-prefix CHECK-ERROR %s
|
|
|
|
@ rdar://16335232
|
|
|
|
.eabi_attribute 8, 1
|
|
@ CHECK-ERROR: error: unknown directive
|
|
|
|
.cpu
|
|
@ CHECK-ERROR: error: unknown directive
|
|
|
|
.fpu neon
|
|
@ CHECK-ERROR: error: unknown directive
|
|
|
|
.arch armv7
|
|
@ CHECK-ERROR: error: unknown directive
|
|
|
|
.fnstart
|
|
@ CHECK-ERROR: error: unknown directive
|
|
|
|
.tlsdescseq
|
|
@ CHECK-ERROR: error: unknown directive
|
|
|
|
.object_arch armv7
|
|
@ CHECK-ERROR: error: unknown directive
|
|
|