[lld] r257029 - [ELF] Fix REQUIRES line in amdgpu tests
Tom Stellard via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 6 21:02:39 PST 2016
Author: tstellar
Date: Wed Jan 6 23:02:38 2016
New Revision: 257029
URL: http://llvm.org/viewvc/llvm-project?rev=257029&view=rev
Log:
[ELF] Fix REQUIRES line in amdgpu tests
'REQUIRES' needs to be in all caps.
Also update lit.cfg so these tests get run when the AMDGPU target is
enabled.
Modified:
lld/trunk/test/ELF/amdgpu-entry.s
lld/trunk/test/ELF/amdgpu-globals.s
lld/trunk/test/ELF/amdgpu-kernels.s
lld/trunk/test/lit.cfg
Modified: lld/trunk/test/ELF/amdgpu-entry.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/amdgpu-entry.s?rev=257029&r1=257028&r2=257029&view=diff
==============================================================================
--- lld/trunk/test/ELF/amdgpu-entry.s (original)
+++ lld/trunk/test/ELF/amdgpu-entry.s Wed Jan 6 23:02:38 2016
@@ -1,7 +1,7 @@
# RUN: llvm-mc -filetype=obj -triple amdgcn--amdhsa -mcpu=kaveri %s -o %t.o
# RUN: not lld -e kernel0 -flavor gnu %t.o -o %t
-# Requires: amdgpu
+# REQUIRES: amdgpu
.hsa_code_object_version 1,0
.hsa_code_object_isa 7,0,0,"AMD","AMDGPU"
Modified: lld/trunk/test/ELF/amdgpu-globals.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/amdgpu-globals.s?rev=257029&r1=257028&r2=257029&view=diff
==============================================================================
--- lld/trunk/test/ELF/amdgpu-globals.s (original)
+++ lld/trunk/test/ELF/amdgpu-globals.s Wed Jan 6 23:02:38 2016
@@ -2,7 +2,7 @@
# RUN: lld -flavor gnu %t.o -o %t
# RUN: llvm-readobj -sections -symbols -program-headers %t | FileCheck %s
-# Requires: amdgpu
+# REQUIRES: amdgpu
.amdgpu_hsa_module_global module_global_program
.size module_global_program, 4
Modified: lld/trunk/test/ELF/amdgpu-kernels.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/amdgpu-kernels.s?rev=257029&r1=257028&r2=257029&view=diff
==============================================================================
--- lld/trunk/test/ELF/amdgpu-kernels.s (original)
+++ lld/trunk/test/ELF/amdgpu-kernels.s Wed Jan 6 23:02:38 2016
@@ -2,6 +2,8 @@
# RUN: lld -flavor gnu %t.o -o %t
# RUN: llvm-readobj -sections -symbols -program-headers %t | FileCheck %s
+# REQUIRES: amdgpu
+
.hsa_code_object_version 1,0
.hsa_code_object_isa 7,0,0,"AMD","AMDGPU"
Modified: lld/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/lit.cfg?rev=257029&r1=257028&r2=257029&view=diff
==============================================================================
--- lld/trunk/test/lit.cfg (original)
+++ lld/trunk/test/lit.cfg Wed Jan 6 23:02:38 2016
@@ -227,6 +227,8 @@ if re.search(r'X86', archs):
config.available_features.add('x86')
if re.search(r'PowerPC', archs):
config.available_features.add('ppc')
+if re.search(r'AMDGPU', archs):
+ config.available_features.add('amdgpu')
llvm_config_cmd.wait()
# Check if Windows resource file compiler exists.
More information about the llvm-commits
mailing list