From 6e860828075ce892e31d564279f36582c6cfafdf Mon Sep 17 00:00:00 2001 From: Quentin Bourgerie Date: Thu, 5 Aug 2021 14:21:55 +0200 Subject: [PATCH] test(compiler): Add testing for run-jit (#63) --- compiler/tests/RunJit/std_addi.mlir | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 compiler/tests/RunJit/std_addi.mlir diff --git a/compiler/tests/RunJit/std_addi.mlir b/compiler/tests/RunJit/std_addi.mlir new file mode 100644 index 000000000..711d9511c --- /dev/null +++ b/compiler/tests/RunJit/std_addi.mlir @@ -0,0 +1,7 @@ +// RUN: zamacompiler %s --run-jit --jit-args 11 --jit-args 31 2>&1| FileCheck %s + +// CHECK-LABEL: 42 +func @main(%arg0: i64, %arg1: i64) -> i64 { + %c = addi %arg0, %arg1 : i64 + return %c : i64 +} \ No newline at end of file