[clang] [Clang][GPU] Fix unit test for NVPTX tid.x intrinsic (PR #136297)
Rahul Joshi via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 18 04:59:23 PDT 2025
https://github.com/jurahul created https://github.com/llvm/llvm-project/pull/136297
- llvm.nvvm.read.ptx.sreg.tid.x does not have the result range attribute yet.
>From d2731a74ee04d2b11b521b76c0a87bb68f0ba03a Mon Sep 17 00:00:00 2001
From: Rahul Joshi <rjoshi at nvidia.com>
Date: Fri, 18 Apr 2025 04:56:55 -0700
Subject: [PATCH] [Clang][GPU] Fix unit test for NVPTX tid.x intrinsic
- llvm.nvvm.read.ptx.sreg.tid.x does not have the result range
attribute yet.
---
clang/test/Headers/gpuintrin_lang.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/clang/test/Headers/gpuintrin_lang.c b/clang/test/Headers/gpuintrin_lang.c
index ab660ac5c8a49..b804d46071507 100644
--- a/clang/test/Headers/gpuintrin_lang.c
+++ b/clang/test/Headers/gpuintrin_lang.c
@@ -36,7 +36,7 @@ __device__ int foo() { return __gpu_thread_id_x(); }
// CUDA-LABEL: define dso_local i32 @foo(
// CUDA-SAME: ) #[[ATTR0:[0-9]+]] {
// CUDA-NEXT: [[ENTRY:.*:]]
-// CUDA-NEXT: [[TMP0:%.*]] = call range(i32 0, 1024) i32 @llvm.nvvm.read.ptx.sreg.tid.x()
+// CUDA-NEXT: [[TMP0:%.*]] = call i32 @llvm.nvvm.read.ptx.sreg.tid.x()
// CUDA-NEXT: ret i32 [[TMP0]]
//
// HIP-LABEL: define dso_local i32 @foo(
More information about the cfe-commits
mailing list