| # REQUIRES: x86 | |
| # RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o | |
| # RUN: ld.lld --noinhibit-exec %t.o -o %t 2>&1 | |
| # RUN: llvm-objdump -d %t | FileCheck %s | |
| ## Undefined TLS symbols resolve to 0. | |
| ## In --noinhibit-exec mode, a non-weak undefined symbol is not an error. | |
| # CHECK: leaq 32(%rax), %rdx | |
| movq %fs:0, %rax | |
| leaq global@tpoff+32(%rax), %rdx |