fix(compiler): CRT multiplication with negative value (close: #834)

This commit is contained in:
Quentin Bourgerie
2022-12-09 15:47:54 +01:00
parent b08ccbbfb5
commit 607457d34a
2 changed files with 21 additions and 1 deletions

View File

@@ -464,7 +464,7 @@ struct MulCleartextCRTLweTensorOpPattern
mlir::Value init = rewriter.create<bufferization::AllocTensorOp>(
op.getLoc(), resultTy, mlir::ValueRange{});
auto rhs = rewriter.create<arith::ExtUIOp>(op.getLoc(),
auto rhs = rewriter.create<arith::ExtSIOp>(op.getLoc(),
rewriter.getI64Type(), op.rhs());
// %0 = scf.for %i = %c0 to %cB step %c1 iter_args(%acc = %init) ->

File diff suppressed because one or more lines are too long