mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-03 08:51:43 +00:00
02ba1e09c1
Certain directives are unsupported on Windows (some of which could/should be supported). We would not diagnose the use but rather crash during the emission as we try to access the Target Streamer. Add an assertion to prevent creating a NULL reference (which is not permitted under C++) as well as a test to ensure that we can diagnose the disabled directives. llvm-svn: 218014
69 lines
1.1 KiB
ArmAsm
69 lines
1.1 KiB
ArmAsm
@ RUN: not llvm-mc -triple thumbv7-windows -filetype asm -o /dev/null %s 2>&1 \
|
|
@ RUN: | FileCheck %s
|
|
|
|
@ RUN: not llvm-mc -triple armv7-darwin -filetype asm -o /dev/null %s 2>&1 \
|
|
@ RUN: | FileCheck %s
|
|
|
|
.syntax unified
|
|
|
|
.arch armv7
|
|
|
|
// CHECK: error: unknown directive
|
|
// CHECK: .arch armv7
|
|
// CHECK: ^
|
|
|
|
.cpu cortex-a7
|
|
|
|
// CHECK: error: unknown directive
|
|
// CHECK: .cpu cortex-a7
|
|
// CHECK: ^
|
|
|
|
.fpu neon
|
|
|
|
// CHECK: error: unknown directive
|
|
// CHECK: .fpu neon
|
|
// CHECK: ^
|
|
|
|
.eabi_attribute 0, 0
|
|
|
|
// CHECK: error: unknown directive
|
|
// CHECK: .eabi_attribute 0, 0
|
|
// CHECK: ^
|
|
|
|
.inst 0xdefe
|
|
|
|
// CHECK: error: unknown directive
|
|
// CHECK: .inst 0xdefe
|
|
// CHECK: ^
|
|
|
|
.inst.n 0xdefe
|
|
|
|
// CHECK: error: unknown directive
|
|
// CHECK: .inst.n 0xdefe
|
|
// CHECK: ^
|
|
|
|
.inst.w 0xdefe
|
|
|
|
// CHECK: error: unknown directive
|
|
// CHECK: .inst.w 0xdefe
|
|
// CHECK: ^
|
|
|
|
.object_arch armv7
|
|
|
|
// CHECK: error: unknown directive
|
|
// CHECK: .object_arch armv7
|
|
// CHECK: ^
|
|
|
|
.tlsdescseq undefined
|
|
|
|
// CHECK: error: unknown directive
|
|
// CHECK: .tlsdescseq undefined
|
|
// CHECK: ^
|
|
|
|
.fnstart
|
|
|
|
// CHECK: error: unknown directive
|
|
// CHECK: .fnstart
|
|
// CHECK: ^
|
|
|