Skip to content

Commit 8e0b6cc

Browse files
committed
add test
1 parent 720b851 commit 8e0b6cc

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// RUN: mlir-reduce %s -reduction-tree='traversal-mode=0 test=%S/failure-test.sh replace-operands=true' | FileCheck %s
2+
3+
// CHECK-LABEL: func.func @main
4+
func.func @main() {
5+
// CHECK-NEXT: %[[RESULT:.*]] = arith.constant 2 : i32
6+
// CHECK-NEXT: {{.*}} = "test.op_crash"(%[[RESULT]], %[[RESULT]]) : (i32, i32) -> i32
7+
// CHECK-NEXT return
8+
9+
%c1 = arith.constant 3 : i32
10+
%c2 = arith.constant 2 : i32
11+
%2 = "test.op_crash" (%c1, %c2) : (i32, i32) -> i32
12+
return
13+
}

0 commit comments

Comments
 (0)