https://github.com/lei137 updated 
https://github.com/llvm/llvm-project/pull/244278

>From b3ffb0a3bdc0de06d330de6ff7a430158e743c0f Mon Sep 17 00:00:00 2001
From: Lei Huang <[email protected]>
Date: Thu, 19 Nov 2026 10:26:39 -0500
Subject: [PATCH] [CIR][OpenMP] Specify target triple in OpenMP loop codegen
 tests

Add `-triple x86_64-unknown-linux-gnu` to tests added in
61067a5096e (#229256) to avoid defaulting to the host target triple
and failing on non-x86 builders like
https://lab.llvm.org/buildbot/#/builders/231/builds/2223.
---
 clang/test/CIR/CodeGenOpenMP/for-loop-forms.c      | 3 ++-
 clang/test/CIR/CodeGenOpenMP/parallel-for.c        | 3 ++-
 clang/test/CIR/CodeGenOpenMP/target-parallel-for.c | 3 ++-
 3 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/clang/test/CIR/CodeGenOpenMP/for-loop-forms.c 
b/clang/test/CIR/CodeGenOpenMP/for-loop-forms.c
index 9f393db1cb5947..ab231fd94a97ee 100644
--- a/clang/test/CIR/CodeGenOpenMP/for-loop-forms.c
+++ b/clang/test/CIR/CodeGenOpenMP/for-loop-forms.c
@@ -1,4 +1,5 @@
-// RUN: %clang_cc1 -fopenmp -emit-cir -fclangir %s -o - | FileCheck %s 
--check-prefix=CIR
+// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fopenmp -emit-cir \
+// RUN:   -fclangir %s -o - | FileCheck %s --check-prefix=CIR
 
 void during(int);
 int getLB(void);
diff --git a/clang/test/CIR/CodeGenOpenMP/parallel-for.c 
b/clang/test/CIR/CodeGenOpenMP/parallel-for.c
index 30d1efb395507d..abedeb0aafe6cf 100644
--- a/clang/test/CIR/CodeGenOpenMP/parallel-for.c
+++ b/clang/test/CIR/CodeGenOpenMP/parallel-for.c
@@ -1,4 +1,5 @@
-// RUN: %clang_cc1 -fopenmp -emit-cir -fclangir %s -o - | FileCheck %s 
--check-prefix=CIR
+// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fopenmp -emit-cir \
+// RUN:   -fclangir %s -o - | FileCheck %s --check-prefix=CIR
 
 // Lowering to LLVM IR: the fork_call wrapper is identical on both paths.
 // The worksharing-loop body itself uses a different runtime API and
diff --git a/clang/test/CIR/CodeGenOpenMP/target-parallel-for.c 
b/clang/test/CIR/CodeGenOpenMP/target-parallel-for.c
index ea7b25dc5f82d3..46ec99b09482ff 100644
--- a/clang/test/CIR/CodeGenOpenMP/target-parallel-for.c
+++ b/clang/test/CIR/CodeGenOpenMP/target-parallel-for.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.

_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to