Skip to content

Commit

Permalink
Expand comments further
Browse files Browse the repository at this point in the history
  • Loading branch information
tzerrell committed Oct 15, 2024
1 parent e727b7a commit 9e23be2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions zirgen/Dialect/BigInt/IR/test/type_infer.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,7 @@ func.func @nondet_rem_coeff_carry() {
// the type inference system approximates to the next highest power of 2 (minus 1, so 65535 in this case).
// a BigInt<2, 65535, 0, 0> would not fit into a BigInt<3, 255, 0, 0>, so we use BigInt<4, 255, 0, 0>
// here instead, even though that results in an unused (always 0) coefficient for BigInt<2, 65025, 0, 0>.
// See `getMaxPosBits` and its comments for more details.
%4 = bigint.nondet_rem %2 : <8, 255, 0, 0>, %3 : <2, 65025, 0, 0> -> <4, 255, 0, 0>
%5 = bigint.reduce %2 : <8, 255, 0, 0>, %3 : <2, 65025, 0, 0> -> <4, 255, 0, 0>
return
Expand Down Expand Up @@ -781,6 +782,7 @@ func.func @nondet_inv_coeff_carry() {
// the type inference system approximates to the next highest power of 2 (minus 1, so 65535 in this case).
// a BigInt<2, 65535, 0, 0> would not fit into a BigInt<3, 255, 0, 0>, so we use BigInt<4, 255, 0, 0>
// here instead, even though that results in an unused (always 0) coefficient for BigInt<2, 65025, 0, 0>.
// See `getMaxPosBits` and its comments for more details.
%4 = bigint.nondet_inv %2 : <8, 255, 0, 0>, %3 : <2, 65025, 0, 0> -> <4, 255, 0, 0>
%5 = bigint.inv %2 : <8, 255, 0, 0>, %3 : <2, 65025, 0, 0> -> <4, 255, 0, 0>
return
Expand Down

0 comments on commit 9e23be2

Please sign in to comment.