Skip to content

Commit

Permalink
Remove 1 regex
Browse files Browse the repository at this point in the history
  • Loading branch information
alexarice committed Dec 10, 2024
1 parent 2a8f874 commit 123638a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/filecheck/transforms/individual_rewrite/add-same.mlir
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
// RUN:xdsl-opt %s --split-input-file -p 'apply-individual-rewrite{matched_operation_index=2 operation_name="arith.addi" pattern_name="AdditionOfSameVariablesToMultiplyByTwo"}'| filecheck %s


// CHECK: %[[#var:]] = "test.op"() : () -> i32
// CHECK: %v = "test.op"() : () -> i32
// CHECK-NEXT: %[[#two:]] = arith.constant 2 : i32
// CHECK-NEXT: %{{.*}} = arith.muli %[[#var]], %[[#two]] : i32
// CHECK-NEXT: %{{.*}} = arith.muli %v, %[[#two]] : i32

%0 = "test.op"() : () -> (i32)
%1 = arith.addi %0, %0 : i32
%v = "test.op"() : () -> (i32)
%1 = arith.addi %v, %v : i32

// -----

// CHECK: %[[#var:]] = "test.op"() : () -> i1
// CHECK: %v = "test.op"() : () -> i1
// CHECK-NEXT: %[[#zero:]] = arith.constant false
// CHECK-NEXT: %{{.*}} = arith.muli %[[#var]], %[[#zero]] : i1
// CHECK-NEXT: %{{.*}} = arith.muli %v, %[[#zero]] : i1

%0 = "test.op"() : () -> (i1)
%1 = arith.addi %0, %0 : i1
%v = "test.op"() : () -> (i1)
%1 = arith.addi %v, %v : i1

0 comments on commit 123638a

Please sign in to comment.