Files
clang-p2996/lld/test/MachO/invalid/bad-tlv-opcode.s
2021-04-11 23:25:23 -04:00

15 lines
313 B
ArmAsm

# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t.o
# RUN: not %lld -o /dev/null %t.o 2>&1 | FileCheck %s
# CHECK: error: TLV reloc requires MOVQ instruction
.text
.globl _main
_main:
leaq _foo@TLVP(%rip), %rax
ret
.section __DATA,__thread_vars,thread_local_variables
_foo: