Skip to content

Commit 2ad0fed

Browse files
committed
[CombToAIG] Use string substitution in a test, NFC
1 parent 5b128a1 commit 2ad0fed

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/Conversion/CombToAIG/comb-to-aig-arith.mlir

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ hw.module @sub(in %lhs: i4, in %rhs: i4, out out: i4) {
3434
// ALLOW_ADD-NEXT: %[[EXT_0:.+]] = comb.extract %lhs from 0 : (i2) -> i1
3535
// ALLOW_ADD-NEXT: %[[EXT_1:.+]] = comb.extract %lhs from 1 : (i2) -> i1
3636
// ALLOW_ADD-NEXT: %c0_i2 = hw.constant 0 : i2
37-
// ALLOW_ADD-NEXT: %[[MUX_0:.+]] = comb.mux %0, %rhs, %c0_i2 : i2
38-
// ALLOW_ADD-NEXT: %[[MUX_1:.+]] = comb.mux %1, %rhs, %c0_i2 : i2
39-
// ALLOW_ADD-NEXT: %[[EXT_MUX_1:.+]] = comb.extract %3 from 0 : (i2) -> i1
37+
// ALLOW_ADD-NEXT: %[[MUX_0:.+]] = comb.mux %[[EXT_0]], %rhs, %c0_i2 : i2
38+
// ALLOW_ADD-NEXT: %[[MUX_1:.+]] = comb.mux %[[EXT_1]], %rhs, %c0_i2 : i2
39+
// ALLOW_ADD-NEXT: %[[EXT_MUX_1:.+]] = comb.extract %[[MUX_1]] from 0 : (i2) -> i1
4040
// ALLOW_ADD-NEXT: %false = hw.constant false
41-
// ALLOW_ADD-NEXT: %[[SHIFT:.+]] = comb.concat %4, %false : i1, i1
41+
// ALLOW_ADD-NEXT: %[[SHIFT:.+]] = comb.concat %[[EXT_MUX_1]], %false : i1, i1
4242
// ALLOW_ADD-NEXT: %[[ADD:.+]] = comb.add bin %[[MUX_0]], %[[SHIFT]] : i2
4343
// ALLOW_ADD-NEXT: hw.output %[[ADD]] : i2
4444
// ALLOW_ADD-NEXT: }

0 commit comments

Comments
 (0)