mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-17 16:26:42 +00:00

If building lld without x86 support, tests that require that support should be treated as unsupported, not errors. Tested using: 1. cmake '-DLLVM_TARGETS_TO_BUILD=AArch64;X86' make check-lld => Expected Passes : 1406 Unsupported Tests : 287 2. cmake '-DLLVM_TARGETS_TO_BUILD=AArch64' make check-lld => Expected Passes : 410 Unsupported Tests : 1283 Patch by Joel Jones Differential Revision: https://reviews.llvm.org/D47748 llvm-svn: 334095
19 lines
447 B
ArmAsm
19 lines
447 B
ArmAsm
# REQUIRES: x86
|
|
# RUN: llvm-mc -triple=x86_64-windows-msvc -filetype=obj -o %t1.obj %s
|
|
# RUN: llvm-mc -triple=x86_64-windows-msvc -filetype=obj -o %t2.obj %s
|
|
|
|
# LLD should not error on relocations in DWARF debug sections against symbols in
|
|
# discarded sections.
|
|
# RUN: lld-link -entry:main -debug %t1.obj %t2.obj
|
|
|
|
.section .text,"xr",discard,main
|
|
.globl main
|
|
main:
|
|
f:
|
|
retq
|
|
|
|
.section .debug_info,"dr"
|
|
.quad f
|
|
.section .eh_frame,"dr"
|
|
.quad f
|