1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/test/MC/ARM/directive-object_arch-diagnostics.s
Saleem Abdulrasool 14399e6e4b ARM IAS: support .object_arch
The .object_arch directive indicates an alternative architecture to be specified
in the object file.  The directive does *not* effect the enabled feature bits
for the object file generation.  This is particularly useful when the code
performs runtime detection and would like to indicate a lower architecture as
the requirements than the actual instructions used.

llvm-svn: 200451
2014-01-30 04:46:41 +00:00

24 lines
484 B
ArmAsm

@ RUN: not llvm-mc -triple armv7-eabi -filetype asm -o /dev/null %s 2>&1 \
@ RUN: | FileCheck %s
.syntax unified
.object_arch i686
@ CHECK: error: unknown architecture 'i686'
@ CHECK: .object_arch i686
@ CHECK: ^
.object_arch armv4!
@ CHECK: error: unexpected token
@ CHECK: .object_arch armv4!
@ CHECK: ^
.object_arch, invalid
@ CHECK: error: unexpected token
@ CHECK: .object_arch, invalid
@ CHECK: ^