xref: /llvm-project/lld/test/MachO/invalid/bad-tlv-opcode.s (revision 74283fc8534b729f5e15ae934de15c01fd6db9c0)
1# REQUIRES: x86
2# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t.o
3# RUN: not %lld -o /dev/null %t.o 2>&1 | FileCheck %s
4
5# CHECK: error: TLV reloc requires MOVQ instruction
6
7.text
8.globl _main
9_main:
10  leaq _foo@TLVP(%rip), %rax
11  ret
12
13.section __DATA,__thread_vars,thread_local_variables
14_foo:
15