Enable the aarch64 tests.

llvm-svn: 248707
This commit is contained in:
Rafael Espindola 2015-09-28 12:22:25 +00:00
parent cdb64566cc
commit 83af95d927
3 changed files with 10 additions and 6 deletions

View File

@ -1,7 +1,7 @@
# RUN: llvm-mc -filetype=obj -triple=aarch64-unknown-freebsd %s -o %t
# RUN: lld -flavor gnu2 %t -o %t2
# RUN: llvm-objdump -d %t2 | FileCheck %s
# REQUIRES: arm64
# REQUIRES: aarch64
.globl _start
_start:

View File

@ -2,7 +2,7 @@
# RUN: lld -flavor gnu2 %t -o %t2
# RUN: llvm-readobj -file-headers -sections -program-headers -symbols %t2 \
# RUN: | FileCheck %s
# REQUIRES: arm64
# REQUIRES: aarch64
# exits with return code 42 on FreeBSD/AArch64
.globl _start;

View File

@ -175,13 +175,17 @@ if re.search(r'DEBUG', llvm_config_output_list[0]):
config.available_features.add('debug')
if re.search(r'ON', llvm_config_output_list[1]):
config.available_features.add('asserts')
if re.search(r'ARM', llvm_config_output_list[2]):
archs = llvm_config_output_list[2]
if re.search(r'AArch64', archs):
config.available_features.add('aarch64')
if re.search(r'ARM', archs):
config.available_features.add('arm')
if re.search(r'Mips', llvm_config_output_list[2]):
if re.search(r'Mips', archs):
config.available_features.add('mips')
if re.search(r'X86', llvm_config_output_list[2]):
if re.search(r'X86', archs):
config.available_features.add('x86')
if re.search(r'PowerPC', llvm_config_output_list[2]):
if re.search(r'PowerPC', archs):
config.available_features.add('ppc')
llvm_config_cmd.wait()