mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-09 12:15:09 -05:00
fix(compiler): CRT multiplication with negative value (close: #834)
This commit is contained in:
@@ -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
Reference in New Issue
Block a user