Skip to content

Commit

Permalink
added tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Berke-Ates committed Oct 15, 2023
1 parent ca3896b commit a82873e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/SDFG/Converter/toSDFG/func/entry.mlir
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// RUN: sdfg-opt --convert-to-sdfg=main-func-name="f2" %s | sdfg-opt | FileCheck %s
// CHECK: arith.addi
func.func private @f1(%arg1: i32, %arg2: i32) -> i32 {
%c0 = arith.subi %arg1, %arg2 : i32
return %c0 : i32
}

func.func private @f2(%arg1: i32, %arg2: i32) -> i32 {
%c0 = arith.addi %arg1, %arg2 : i32
return %c0 : i32
}
11 changes: 11 additions & 0 deletions test/SDFG/Converter/toSDFG/func/entry2.mlir
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// RUN: sdfg-opt --convert-to-sdfg=main-func-name="f1" %s | sdfg-opt | FileCheck %s
// CHECK: arith.subi
func.func private @f1(%arg1: i32, %arg2: i32) -> i32 {
%c0 = arith.subi %arg1, %arg2 : i32
return %c0 : i32
}

func.func private @f2(%arg1: i32, %arg2: i32) -> i32 {
%c0 = arith.addi %arg1, %arg2 : i32
return %c0 : i32
}

0 comments on commit a82873e

Please sign in to comment.