mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-17 06:46:36 +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
25 lines
510 B
ArmAsm
25 lines
510 B
ArmAsm
# REQUIRES: x86
|
|
|
|
# RUN: llvm-mc -triple=i686-windows-gnu %s -filetype=obj -o %t.obj
|
|
|
|
# RUN: lld-link -lldmingw -dll -out:%t.dll -entry:main %t.obj -implib:%t.lib
|
|
# RUN: llvm-readobj %t.lib | FileCheck %s
|
|
|
|
# CHECK: Symbol: __imp___underscoredFunc
|
|
# CHECK: Symbol: __underscoredFunc
|
|
# CHECK: Symbol: __imp__func
|
|
# CHECK: Symbol: _func
|
|
|
|
.global _main
|
|
.global _func
|
|
.global __underscoredFunc
|
|
.text
|
|
_main:
|
|
ret
|
|
_func:
|
|
ret
|
|
__underscoredFunc:
|
|
ret
|
|
.section .drectve
|
|
.ascii "-export:func -export:_underscoredFunc"
|