llvm-6502/test/MC/ARM/directive-tlsdescseq-diagnostics.s
Saleem Abdulrasool 2c9ed5d050 ARM: suuport .tlsdescseq directive
This enhances the ARMAsmParser to handle .tlsdescseq directives.  This is a
slightly special relocation.  We must be able to generate them, but not consume
them in assembly.  The relocation is meant to assist the linker in generating a
TLS descriptor sequence.  The ELF target streamer is enhanced to append
additional fixups into the current segment and that is used to emit the new
R_ARM_TLS_DESCSEQ relocations.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200448 91177308-0d34-0410-b5e6-96231b3b80d8
2014-01-30 04:02:47 +00:00

36 lines
834 B
ArmAsm

@ RUN: not llvm-mc -triple armv7-linux-gnu -filetype asm -o /dev/null %s 2>&1 \
@ RUN: | FileCheck %s
.type missing_variable,%function
missing_variable:
.tlsdescseq
@ CHECK: error: expected variable after '.tlsdescseq' directive
@ CHECK: .tlsdescseq
@ CHECK: ^
.type bad_expression,%function
bad_expression:
.tlsdescseq variable(tlsdesc)
@ CHECK: error: unexpected token
@ CHECK: .tlsdescseq variable(tlsdesc)
@ CHECK: ^
.type trailing_garbage,%function
trailing_garbage:
.tlsdescseq variable,
@ CHECK: error: unexpected token
@ CHECK: .tlsdescseq variable,
@ CHECK: ^
.type invalid_use,%function
invalid_use:
blx invalid(tlsdescseq)
@ CHECK: error: invalid variant 'tlsdescseq'
@ CHECK: blx invalid(tlsdescseq)
@ CHECK: ^