[clang] f74e3d2 - [OpenMP] Fix test on 32-bit platforms

Joseph Huber via cfe-commits cfe-commits at lists.llvm.org
Sun Dec 25 07:47:47 PST 2022


Author: Joseph Huber
Date: 2022-12-25T09:47:04-06:00
New Revision: f74e3d2f81d2aae47d6032fc1d23114460d48a37

URL: https://github.com/llvm/llvm-project/commit/f74e3d2f81d2aae47d6032fc1d23114460d48a37
DIFF: https://github.com/llvm/llvm-project/commit/f74e3d2f81d2aae47d6032fc1d23114460d48a37.diff

LOG: [OpenMP] Fix test on 32-bit platforms

Summary:
This test didn't specify the triple so it defaulted to the user's, if
this was 32-bit then it failed due to a diagnostic message.

Added: 
    

Modified: 
    clang/test/OpenMP/declare_target_nohost_variant_messages.cpp

Removed: 
    


################################################################################
diff  --git a/clang/test/OpenMP/declare_target_nohost_variant_messages.cpp b/clang/test/OpenMP/declare_target_nohost_variant_messages.cpp
index 190c1387cb099..62206d3020e96 100644
--- a/clang/test/OpenMP/declare_target_nohost_variant_messages.cpp
+++ b/clang/test/OpenMP/declare_target_nohost_variant_messages.cpp
@@ -1,6 +1,6 @@
 // REQUIRES: amdgpu-registered-target
 
-// RUN: %clang_cc1 -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa -fopenmp-version=52 -DVERBOSE_MODE=1 -verify=omp52 -fnoopenmp-use-tls -ferror-limit 100 -fopenmp-targets=amdgcn-amd-amdhsa -o - %s
+// RUN: %clang_cc1 -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa -fopenmp-version=52 -triple powerpc64le-unknown-unknown -DVERBOSE_MODE=1 -verify=omp52 -fnoopenmp-use-tls -ferror-limit 100 -fopenmp-targets=amdgcn-amd-amdhsa -o - %s
 
 void fun();
 void host_function();


        


More information about the cfe-commits mailing list