[libclc] Wyles/update libclctests (PR #228681)

Jared Wyles via cfe-commits cfe-commits at lists.llvm.org
Sat Oct 3 20:26:50 PDT 2026


https://github.com/jaredwy updated https://github.com/llvm/llvm-project/pull/228681

>From 7de77a0b5c20397060076e4f348e90fbee9fe7d1 Mon Sep 17 00:00:00 2001
From: Jared W <jared.wyles at gmail.com>
Date: Sat, 3 Oct 2026 18:39:06 +1000
Subject: [PATCH] [libclc] it looks like a previous change to llvm taught
 computeConstantRange to zext and sext. Update test to match

---
 libclc/test/work-item/get_group_id.cl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libclc/test/work-item/get_group_id.cl b/libclc/test/work-item/get_group_id.cl
index 90ea18124d43e..1497768744d47 100644
--- a/libclc/test/work-item/get_group_id.cl
+++ b/libclc/test/work-item/get_group_id.cl
@@ -3,7 +3,7 @@
 
 // RUN: %clang --target=%target -mcpu=%cpu %libclc_lib -cl-std=CL3.0 -O2 -fno-discard-value-names -emit-llvm -S -o - %s | FileCheck %s --check-prefix=%check_prefix
 
-// AMDGCN-LABEL: define hidden range(i64 0, 4294967296) i64 @test(
+// AMDGCN-LABEL: define hidden noundef range(i64 0, 4294967296) i64 @test(
 // AMDGCN-SAME: ) local_unnamed_addr #[[ATTR0:[0-9]+]] {
 // AMDGCN-NEXT:  [[ENTRY:.*:]]
 // AMDGCN-NEXT:    [[TMP0:%.*]] = tail call i32 @llvm.amdgcn.workgroup.id.x()



More information about the cfe-commits mailing list