summaryrefslogtreecommitdiff
path: root/offload/test/offloading
diff options
context:
space:
mode:
authorJoseph Huber <huberjn@outlook.com>2025-02-14 09:56:02 -0600
committerJoseph Huber <huberjn@outlook.com>2025-02-14 09:56:46 -0600
commit1435c8ed95fa10a55c2f924984141e427b89c330 (patch)
tree9597df6b730bf8034e0fd8b1f4762682826f3a13 /offload/test/offloading
parent035bc529f7de71aac6161f8074725acdb5a11254 (diff)
Reapply "[LinkerWrapper] Clean up options after proper forwarding" (#126495)
Summary: The test failed because it no longer passed Rpass by default without LTO. I think that's desirable as it matches the standard behavior. This reverts commit 6fd99de31864a5ef84ae8613b3a9034e05293461.
Diffstat (limited to 'offload/test/offloading')
-rw-r--r--offload/test/offloading/bug51781.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/offload/test/offloading/bug51781.c b/offload/test/offloading/bug51781.c
index 17b7499a7606..2f30b035afbb 100644
--- a/offload/test/offloading/bug51781.c
+++ b/offload/test/offloading/bug51781.c
@@ -5,7 +5,7 @@
// SPMDize. There is no main thread, so there's no issue.
//
-// RUN: %libomptarget-compile-generic -O2 -Rpass=openmp-opt > %t.spmd 2>&1
+// RUN: %libomptarget-compile-generic -O2 -foffload-lto -Rpass=openmp-opt > %t.spmd 2>&1
// RUN: %fcheck-nvptx64-nvidia-cuda -check-prefix=SPMD -input-file=%t.spmd
// RUN: %fcheck-amdgcn-amd-amdhsa -check-prefix=SPMD -input-file=%t.spmd
// RUN: %libomptarget-run-generic 2>&1 | %fcheck-generic
@@ -15,7 +15,7 @@
// Use the custom state machine, which must avoid the same barrier problem as
// the generic state machine.
//
-// RUN: %libomptarget-compile-generic -O2 -Rpass=openmp-opt \
+// RUN: %libomptarget-compile-generic -O2 -foffload-lto -Rpass=openmp-opt \
// RUN: -mllvm -openmp-opt-disable-spmdization > %t.custom 2>&1
// RUN: %fcheck-nvptx64-nvidia-cuda -check-prefix=CUSTOM -input-file=%t.custom
// RUN: %fcheck-amdgcn-amd-amdhsa -check-prefix=CUSTOM -input-file=%t.custom
@@ -24,7 +24,7 @@
// Repeat with reduction clause, which has managed to break the custom state
// machine in the past.
//
-// RUN: %libomptarget-compile-generic -O2 -Rpass=openmp-opt -DADD_REDUCTION \
+// RUN: %libomptarget-compile-generic -O2 -foffload-lto -Rpass=openmp-opt -DADD_REDUCTION \
// RUN: -mllvm -openmp-opt-disable-spmdization > %t.custom 2>&1
// RUN: %fcheck-nvptx64-nvidia-cuda -check-prefix=CUSTOM -input-file=%t.custom
// RUN: %fcheck-amdgcn-amd-amdhsa -check-prefix=CUSTOM -input-file=%t.custom