mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
09f38a0ef1
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200451 91177308-0d34-0410-b5e6-96231b3b80d8
24 lines
484 B
ArmAsm
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: ^
|
|
|