Fix REQUIRES lines added in r226951 and add the x86 feature if the X86 target was compiled in

llvm-svn: 226985
This commit is contained in:
Filipe Cabecinhas 2015-01-24 03:55:22 +00:00
parent b80a8dce03
commit d1787adcec
19 changed files with 35 additions and 33 deletions

View File

@ -1,4 +1,4 @@
# REQUIRES: Mips # REQUIRES: mips
# Check executable base address configuration. Base address should be # Check executable base address configuration. Base address should be
# equal to 0x400000 and the MIPS_BASE_ADDRESS dynamic tag's value should # equal to 0x400000 and the MIPS_BASE_ADDRESS dynamic tag's value should

View File

@ -1,4 +1,4 @@
# REQUIRES: X86 # REQUIRES: x86
# This test checks that IRELATIVE relocations are created for symbols that # This test checks that IRELATIVE relocations are created for symbols that
# need relocation even for static links. # need relocation even for static links.

View File

@ -1,5 +1,5 @@
# REQUIRES: X86 # REQUIRES: x86
#
# This tests verifies that TLS variables have correct offsets # This tests verifies that TLS variables have correct offsets
RUN: lld -flavor gnu -target x86_64-linux %p/Inputs/tls.x86-64 -static \ RUN: lld -flavor gnu -target x86_64-linux %p/Inputs/tls.x86-64 -static \
RUN: --output-filetype=yaml --noinhibit-exec | FileCheck %s -check-prefix=YAML RUN: --output-filetype=yaml --noinhibit-exec | FileCheck %s -check-prefix=YAML

View File

@ -1,4 +1,4 @@
REQUIRES: X86 REQUIRES: x86
RUN: lld -flavor gnu -target x86_64-linux -o %t1 %p/Inputs/relocs.x86-64 \ RUN: lld -flavor gnu -target x86_64-linux -o %t1 %p/Inputs/relocs.x86-64 \
RUN: -e _start -static RUN: -e _start -static

View File

@ -155,6 +155,8 @@ if re.search(r'ARM', llvm_config_output_list[2]):
config.available_features.add('arm') config.available_features.add('arm')
if re.search(r'Mips', llvm_config_output_list[2]): if re.search(r'Mips', llvm_config_output_list[2]):
config.available_features.add('mips') config.available_features.add('mips')
if re.search(r'X86', llvm_config_output_list[2]):
config.available_features.add('x86')
llvm_config_cmd.wait() llvm_config_cmd.wait()
# Check if Windows resource file compiler exists. # Check if Windows resource file compiler exists.

View File

@ -1,5 +1,5 @@
# REQUIRES: X86 # REQUIRES: x86
#
# RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 %s -o %t \ # RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 %s -o %t \
# RUN: %p/Inputs/libSystem.yaml # RUN: %p/Inputs/libSystem.yaml
# RUN: llvm-objdump -lazy-bind %t | FileCheck %s # RUN: llvm-objdump -lazy-bind %t | FileCheck %s

View File

@ -1,5 +1,5 @@
# REQUIRES: X86 # REQUIRES: x86
#
# RUN: yaml2obj %p/Inputs/alternatename1.obj.yaml > %t1.obj # RUN: yaml2obj %p/Inputs/alternatename1.obj.yaml > %t1.obj
# RUN: yaml2obj %p/Inputs/alternatename2.obj.yaml > %t2.obj # RUN: yaml2obj %p/Inputs/alternatename2.obj.yaml > %t2.obj
# RUN: yaml2obj %p/Inputs/alternatename3.obj.yaml > %t3.obj # RUN: yaml2obj %p/Inputs/alternatename3.obj.yaml > %t3.obj

View File

@ -1,5 +1,5 @@
# REQUIRES: ARM # REQUIRES: arm
#
# RUN: yaml2obj -format coff -o %t.obj %p/Inputs/armnt-blx23t.obj.yaml # RUN: yaml2obj -format coff -o %t.obj %p/Inputs/armnt-blx23t.obj.yaml
# RUN: llvm-objdump -d %t.obj | FileCheck %s -check-prefix BEFORE # RUN: llvm-objdump -d %t.obj | FileCheck %s -check-prefix BEFORE
# RUN: lld -flavor link /entry:function /subsystem:console /out:%t.exe %t.obj # RUN: lld -flavor link /entry:function /subsystem:console /out:%t.exe %t.obj

View File

@ -1,5 +1,5 @@
# REQUIRES: ARM # REQUIRES: arm
#
# RUN: yaml2obj -format coff -o %t.obj %p/Inputs/armnt-branch24t.obj.yaml # RUN: yaml2obj -format coff -o %t.obj %p/Inputs/armnt-branch24t.obj.yaml
# RUN: llvm-objdump -d %t.obj | FileCheck %s -check-prefix BEFORE # RUN: llvm-objdump -d %t.obj | FileCheck %s -check-prefix BEFORE
# RUN: lld -flavor link /entry:function /subsystem:console /out:%t.exe %t.obj # RUN: lld -flavor link /entry:function /subsystem:console /out:%t.exe %t.obj

View File

@ -1,5 +1,5 @@
# REQUIRES: ARM # REQUIRES: arm
#
# RUN: yaml2obj -format coff -o %t.obj %p/Inputs/armnt-mov32t-exec.obj.yaml # RUN: yaml2obj -format coff -o %t.obj %p/Inputs/armnt-mov32t-exec.obj.yaml
# RUN: llvm-objdump -d %t.obj | FileCheck %s -check-prefix BEFORE # RUN: llvm-objdump -d %t.obj | FileCheck %s -check-prefix BEFORE
# RUN: lld -flavor link /out:%t.exe /subsystem:console /entry:get_function %t.obj # RUN: lld -flavor link /out:%t.exe /subsystem:console /entry:get_function %t.obj

View File

@ -1,5 +1,5 @@
# REQUIRES: ARM # REQUIRES: arm
#
# RUN: yaml2obj -format coff -o %t.obj %p/Inputs/armnt-mov32t.obj.yaml # RUN: yaml2obj -format coff -o %t.obj %p/Inputs/armnt-mov32t.obj.yaml
# RUN: llvm-objdump -d %t.obj | FileCheck %s -check-prefix BEFORE # RUN: llvm-objdump -d %t.obj | FileCheck %s -check-prefix BEFORE
# RUN: lld -flavor link /entry:get_buffer /subsystem:console /out:%t.exe %t.obj # RUN: lld -flavor link /entry:get_buffer /subsystem:console /out:%t.exe %t.obj

View File

@ -1,5 +1,5 @@
# REQUIRES: X86 # REQUIRES: x86
#
# RUN: yaml2obj %p/Inputs/common-symbol.obj.yaml > %t.obj # RUN: yaml2obj %p/Inputs/common-symbol.obj.yaml > %t.obj
# #
# RUN: lld -flavor link /machine:x64 /out:%t.exe /subsystem:console /force \ # RUN: lld -flavor link /machine:x64 /out:%t.exe /subsystem:console /force \

View File

@ -1,5 +1,5 @@
# REQUIRES: X86 # REQUIRES: x86
#
# RUN: yaml2obj %p/Inputs/hello64.obj.yaml > %t.obj # RUN: yaml2obj %p/Inputs/hello64.obj.yaml > %t.obj
# RUN: lld -flavor link /out:%t.exe /subsystem:windows /machine:x64 \ # RUN: lld -flavor link /out:%t.exe /subsystem:windows /machine:x64 \

View File

@ -1,5 +1,5 @@
# REQUIRES: X86 # REQUIRES: x86
#
# RUN: yaml2obj %p/Inputs/imagebase.obj.yaml > %t.obj # RUN: yaml2obj %p/Inputs/imagebase.obj.yaml > %t.obj
# RUN: lld -flavor link /out:%t1.exe /subsystem:console /entry:_start \ # RUN: lld -flavor link /out:%t1.exe /subsystem:console /entry:_start \

View File

@ -1,5 +1,5 @@
# REQUIRES: X86 # REQUIRES: x86
#
# Verify that lld can handle .lib files. "main.obj" refers "var" and # Verify that lld can handle .lib files. "main.obj" refers "var" and
# "fn" defined in "vars.lib". # "fn" defined in "vars.lib".
# #

View File

@ -1,5 +1,5 @@
# REQUIRES: X86 # REQUIRES: x86
#
# Verify that lld can handle a library file. # Verify that lld can handle a library file.
# #
# RUN: yaml2obj %p/Inputs/main.obj.yaml > %t.obj # RUN: yaml2obj %p/Inputs/main.obj.yaml > %t.obj

View File

@ -1,5 +1,5 @@
# REQUIRES: X86 # REQUIRES: x86
#
# Verify that lld can handle multiple input files. # Verify that lld can handle multiple input files.
# #
# RUN: yaml2obj %p/Inputs/main.obj.yaml > %t1.obj # RUN: yaml2obj %p/Inputs/main.obj.yaml > %t1.obj

View File

@ -1,5 +1,5 @@
# REQUIRES: X86 # REQUIRES: x86
#
# RUN: yaml2obj %p/Inputs/reloc.obj.yaml > %t.obj # RUN: yaml2obj %p/Inputs/reloc.obj.yaml > %t.obj
# #
# RUN: lld -flavor link /out:%t.exe /subsystem:console /force /opt:noref \ # RUN: lld -flavor link /out:%t.exe /subsystem:console /force /opt:noref \

View File

@ -1,5 +1,5 @@
# REQUIRES: X86 # REQUIRES: x86
#
# RUN: yaml2obj %p/Inputs/reloc64.obj.yaml > %t.obj # RUN: yaml2obj %p/Inputs/reloc64.obj.yaml > %t.obj
# RUN: lld -flavor link /out:%t.exe /subsystem:console /machine:x64 \ # RUN: lld -flavor link /out:%t.exe /subsystem:console /machine:x64 \