Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Signed-off-by: MaheshRavishankar <[email protected]>
  • Loading branch information
MaheshRavishankar committed Jan 6, 2025
1 parent 0a1d95b commit deaf5fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
// CHECK-DAG: %[[TID_Y_EXT:.*]] = llvm.sext %[[TID_Y]] : i32 to i64
// CHECK-DAG: %[[LANEID:.*]] = nvvm.read.ptx.sreg.laneid range <i32, 0, 32> : i32
// CHECK-DAG: %[[LANEID_EXT:.*]] = llvm.sext %[[LANEID]] : i32 to i64
// CHECK-DAG: %[[TID_Y_IDX:.*]] = llvm.mul %[[TID_Y_EXT]], %[[C64]] : i64
// CHECK-DAG: %[[TID_Y_IDX:.*]] = llvm.mul %[[TID_Y_EXT]], %[[C64]] overflow<nsw> : i64
//
// Match the loop invariant math on the special registers.
// CHECK: %[[GRP_IDX:.*]] = llvm.add %[[TID_Y_IDX]], %[[LANEID_EXT]] : i64
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,11 +199,11 @@ hal.executable @i4_dequant_matvec_f16_subgroup_64 {

// Load the quantized weight and get 4xi4 out of it. Ensure that the offset
// calculation avoids excessive scaling down in computing the element offset.
// CHECK: spirv.IMul %{{.*}}, %[[C64]] : i32
// CHECK: spirv.IMul %{{.*}}, %[[C64]] {no_signed_wrap} : i32
// CHECK: spirv.IAdd %{{.*}}, %[[STREAMBINDING]] : i32
// CHECK: spirv.IMul %{{.*}}, %[[C5504]] : i32
// CHECK: spirv.IMul %{{.*}}, %[[C5504]] {no_signed_wrap} : i32
// CHECK: spirv.IAdd %{{.*}}, %{{.*}} : i32
// CHECK: spirv.IMul %[[WIDX]], %[[C2]] : i32
// CHECK: spirv.IMul %[[WIDX]], %[[C2]] {no_signed_wrap} : i32
// CHECK: spirv.IAdd %{{.*}}, %{{.*}} : i32
// CHECK: %[[OFFSET:.+]] = spirv.SDiv %{{.*}}, %[[C4]] : i32
// CHECK: %[[ACCESS:.+]] = spirv.AccessChain %[[RADDR]][{{.*}}, %[[OFFSET]]] : !spirv.ptr<!spirv.struct<(!spirv.rtarray<i32, stride=4> [0])>, StorageBuffer>, i32, i32
Expand Down

0 comments on commit deaf5fd

Please sign in to comment.