Skip to content

Commit 5b68676

Browse files
Signed-off-by: MaheshRavishankar <[email protected]>
1 parent e3301b7 commit 5b68676

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

compiler/src/iree/compiler/Codegen/LLVMGPU/test/nvvm_extract_address_computation.mlir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
// CHECK-DAG: %[[TID_Y_EXT:.*]] = llvm.sext %[[TID_Y]] : i32 to i64
4545
// CHECK-DAG: %[[LANEID:.*]] = nvvm.read.ptx.sreg.laneid range <i32, 0, 32> : i32
4646
// CHECK-DAG: %[[LANEID_EXT:.*]] = llvm.sext %[[LANEID]] : i32 to i64
47-
// CHECK-DAG: %[[TID_Y_IDX:.*]] = llvm.mul %[[TID_Y_EXT]], %[[C64]] : i64
47+
// CHECK-DAG: %[[TID_Y_IDX:.*]] = llvm.mul %[[TID_Y_EXT]], %[[C64]] overflow<nsw> : i64
4848
//
4949
// Match the loop invariant math on the special registers.
5050
// CHECK: %[[GRP_IDX:.*]] = llvm.add %[[TID_Y_IDX]], %[[LANEID_EXT]] : i64

compiler/src/iree/compiler/Codegen/SPIRV/test/pipeline_matvec.mlir

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,11 +199,11 @@ hal.executable @i4_dequant_matvec_f16_subgroup_64 {
199199

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

0 commit comments

Comments
 (0)