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
20 lines
352 B
ArmAsm
20 lines
352 B
ArmAsm
# REQUIRES: x86
|
|
# RUN: llvm-mc -triple=x86_64-windows-msvc %s -filetype=obj -o %t.obj
|
|
# RUN: lld-link -entry:main %t.obj -out:%t.exe -verbose 2>&1 | FileCheck %s
|
|
|
|
# CHECK: Selected internal
|
|
# CHECK: Removed f2
|
|
|
|
.section .text,"xr",one_only,internal
|
|
internal:
|
|
.globl main
|
|
main:
|
|
call f2
|
|
ret
|
|
|
|
.section .text,"xr",one_only,f2
|
|
.globl f2
|
|
f2:
|
|
call main
|
|
ret
|