@@ -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(
@@ -46,19 +46,19 @@ __device__ int foo() { return __gpu_thread_id_x(); }
4646// HIP-NEXT: [[RETVAL:%.*]] = alloca i32, align 4, addrspace(5)
4747// HIP-NEXT: [[RETVAL_ASCAST:%.*]] = addrspacecast ptr addrspace(5) [[RETVAL]] to ptr
4848// HIP-NEXT: [[RETVAL_ASCAST_I:%.*]] = addrspacecast ptr addrspace(5) [[RETVAL_I]] to ptr
49- // HIP-NEXT: [[TMP0:%.*]] = call noundef range(i32 0, 1024) i32 @llvm.amdgcn.workitem.id.x()
49+ // HIP-NEXT: [[TMP0:%.*]] = call noundef {{.*}} i32 @llvm.amdgcn.workitem.id.x()
5050// HIP-NEXT: ret i32 [[TMP0]]
5151//
5252// OPENCL-LABEL: define dso_local i32 @foo(
5353// OPENCL-SAME: ) #[[ATTR0:[0-9]+]] {
5454// OPENCL-NEXT: [[ENTRY:.*:]]
55- // OPENCL-NEXT: [[TMP0:%.*]] = call noundef range(i32 0, 1024) i32 @llvm.amdgcn.workitem.id.x()
55+ // OPENCL-NEXT: [[TMP0:%.*]] = call noundef {{.*}} i32 @llvm.amdgcn.workitem.id.x()
5656// OPENCL-NEXT: ret i32 [[TMP0]]
5757//
5858// OPENMP-LABEL: define hidden i32 @foo(
5959// OPENMP-SAME: ) #[[ATTR0:[0-9]+]] {
6060// OPENMP-NEXT: [[ENTRY:.*:]]
61- // OPENMP-NEXT: [[TMP0:%.*]] = call noundef range(i32 0, 1024) i32 @llvm.amdgcn.workitem.id.x()
61+ // OPENMP-NEXT: [[TMP0:%.*]] = call noundef {{.*}} i32 @llvm.amdgcn.workitem.id.x()
6262// OPENMP-NEXT: ret i32 [[TMP0]]
6363//
6464// C89-LABEL: define dso_local i32 @foo(
@@ -68,7 +68,7 @@ __device__ int foo() { return __gpu_thread_id_x(); }
6868// C89-NEXT: [[RETVAL:%.*]] = alloca i32, align 4, addrspace(5)
6969// C89-NEXT: [[RETVAL_ASCAST:%.*]] = addrspacecast ptr addrspace(5) [[RETVAL]] to ptr
7070// C89-NEXT: [[RETVAL_ASCAST_I:%.*]] = addrspacecast ptr addrspace(5) [[RETVAL_I]] to ptr
71- // C89-NEXT: [[TMP0:%.*]] = call noundef range(i32 0, 1024) i32 @llvm.amdgcn.workitem.id.x()
71+ // C89-NEXT: [[TMP0:%.*]] = call noundef {{.*}} i32 @llvm.amdgcn.workitem.id.x()
7272// C89-NEXT: ret i32 [[TMP0]]
7373//
7474int foo () { return __gpu_thread_id_x (); }
0 commit comments