[clang] 8c64928 - [OpenMP] Add necessary registered targets for linker wrapper test
Joseph Huber via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 19 15:49:13 PDT 2022
Author: Joseph Huber
Date: 2022-04-19T18:48:58-04:00
New Revision: 8c64928887997a176c8f78b26c0edf00d6b2f59d
URL: https://github.com/llvm/llvm-project/commit/8c64928887997a176c8f78b26c0edf00d6b2f59d
DIFF: https://github.com/llvm/llvm-project/commit/8c64928887997a176c8f78b26c0edf00d6b2f59d.diff
LOG: [OpenMP] Add necessary registered targets for linker wrapper test
Summary:
The linker wrapper needs to use the registered backend to perform LTO.
This was causing problems on the buildbots that didn't support it.
Added:
Modified:
clang/test/Driver/linker-wrapper-image.c
clang/test/Driver/linker-wrapper.c
Removed:
################################################################################
diff --git a/clang/test/Driver/linker-wrapper-image.c b/clang/test/Driver/linker-wrapper-image.c
index dbe32f3070318..00d8e235255fa 100644
--- a/clang/test/Driver/linker-wrapper-image.c
+++ b/clang/test/Driver/linker-wrapper-image.c
@@ -1,4 +1,6 @@
// REQUIRES: x86-registered-target
+// REQUIRES: nvptx-registered-target
+// REQUIRES: amdgpu-registered-target
// RUN: %clang -cc1 %s -emit-obj -o %t.o \
// RUN: -fembed-offload-object=%S/Inputs/dummy-elf.o,openmp,nvptx64-nvida-cuda,sm_70
diff --git a/clang/test/Driver/linker-wrapper.c b/clang/test/Driver/linker-wrapper.c
index 0f9220bd2a951..a2c2777c3ce2d 100644
--- a/clang/test/Driver/linker-wrapper.c
+++ b/clang/test/Driver/linker-wrapper.c
@@ -1,4 +1,6 @@
// REQUIRES: x86-registered-target
+// REQUIRES: nvptx-registered-target
+// REQUIRES: amdgpu-registered-target
// RUN: %clang -cc1 %s -emit-obj -o %t.o \
// RUN: -fembed-offload-object=%S/Inputs/dummy-elf.o,openmp,nvptx64-nvida-cuda,sm_70 \
@@ -9,8 +11,8 @@
// NVPTX_LINK: nvlink{{.*}}-m64 -o {{.*}}.out -arch sm_70 {{.*}}.o {{.*}}.o
// RUN: %clang -cc1 %s -emit-obj -o %t.o \
-// RUN: -fembed-offload-object=%S/Inputs/dummy-elf.o,openmp,amdgcn-amd-amdhsam,gfx908 \
-// RUN: -fembed-offload-object=%S/Inputs/dummy-elf.o,openmp,amdgcn-amd-amdhsam,gfx908
+// RUN: -fembed-offload-object=%S/Inputs/dummy-elf.o,openmp,amdgcn-amd-amdhsa,gfx908 \
+// RUN: -fembed-offload-object=%S/Inputs/dummy-elf.o,openmp,amdgcn-amd-amdhsa,gfx908
// RUN: clang-linker-wrapper --dry-run -linker-path /usr/bin/ld -- %t.o -o a.out \
// RUN: 2>&1 | FileCheck %s --check-prefix=AMDGPU_LINK
More information about the cfe-commits
mailing list