Skip to content

Commit e1b14d4

Browse files
authored
[Clang][GPU] Fix unit test for NVPTX tid.x intrinsic (#136297)
- llvm.nvvm.read.ptx.sreg.tid.x does not have the result range attribute yet.
1 parent 6462fad commit e1b14d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/test/Headers/gpuintrin_lang.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ __device__ int foo() { return __gpu_thread_id_x(); }
3636
// CUDA-LABEL: define dso_local i32 @foo(
3737
// CUDA-SAME: ) #[[ATTR0:[0-9]+]] {
3838
// CUDA-NEXT: [[ENTRY:.*:]]
39-
// CUDA-NEXT: [[TMP0:%.*]] = call range(i32 0, 1024) i32 @llvm.nvvm.read.ptx.sreg.tid.x()
39+
// CUDA-NEXT: [[TMP0:%.*]] = call i32 @llvm.nvvm.read.ptx.sreg.tid.x()
4040
// CUDA-NEXT: ret i32 [[TMP0]]
4141
//
4242
// HIP-LABEL: define dso_local i32 @foo(

0 commit comments

Comments
 (0)