diff --git a/test/SDFG/Converter/toSDFG/func/entry.mlir b/test/SDFG/Converter/toSDFG/func/entry.mlir new file mode 100644 index 00000000..580882bf --- /dev/null +++ b/test/SDFG/Converter/toSDFG/func/entry.mlir @@ -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 +} diff --git a/test/SDFG/Converter/toSDFG/func/entry2.mlir b/test/SDFG/Converter/toSDFG/func/entry2.mlir new file mode 100644 index 00000000..3b2e0dbd --- /dev/null +++ b/test/SDFG/Converter/toSDFG/func/entry2.mlir @@ -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 +}