mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
89a237a2c6
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. llvm-svn: 200448
36 lines
834 B
ArmAsm
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: ^
|
|
|