[clang] [CIR][OpenMP] Specify x86 host triple in target-parallel test (PR #234314)

via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 21 11:55:07 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Morris Hafner (mmha)

<details>
<summary>Changes</summary>

The host RUN line inherits the compiler default triple even though the checks describe an x86 host with an AMDGPU offload target. Clang rejects the incompatible host and device pointer sizes on platforms like ARM32.

Assisted-by: Codex


---
Full diff: https://github.com/llvm/llvm-project/pull/234314.diff


1 Files Affected:

- (modified) clang/test/CIR/CodeGenOpenMP/target-parallel.c (+2-1) 


``````````diff
diff --git a/clang/test/CIR/CodeGenOpenMP/target-parallel.c b/clang/test/CIR/CodeGenOpenMP/target-parallel.c
index a1832e7ffb3c2f..c7992665419853 100644
--- a/clang/test/CIR/CodeGenOpenMP/target-parallel.c
+++ b/clang/test/CIR/CodeGenOpenMP/target-parallel.c
@@ -1,7 +1,8 @@
 // REQUIRES: amdgpu-registered-target
 
 // Host compilation (x86 host, AMDGPU offload target).
-// RUN: %clang_cc1 -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa -emit-cir -fclangir %s -o - \
+// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fopenmp \
+// RUN:   -fopenmp-targets=amdgcn-amd-amdhsa -emit-cir -fclangir %s -o - \
 // RUN:   | FileCheck %s --check-prefix=CIR-HOST
 
 // Device compilation (AMDGPU): allocas live in the private address space.

``````````

</details>


https://github.com/llvm/llvm-project/pull/234314


More information about the cfe-commits mailing list