aboutsummaryrefslogtreecommitdiffstats
path: root/test/Standalone
diff options
context:
space:
mode:
Diffstat (limited to 'test/Standalone')
-rw-r--r--test/Standalone/dummy.mlir11
-rw-r--r--test/Standalone/standalone-opt.mlir3
-rw-r--r--test/Standalone/standalone-translate.mlir5
3 files changed, 19 insertions, 0 deletions
diff --git a/test/Standalone/dummy.mlir b/test/Standalone/dummy.mlir
new file mode 100644
index 0000000..ada4280
--- /dev/null
+++ b/test/Standalone/dummy.mlir
@@ -0,0 +1,11 @@
+// RUN: standalone-opt %s | standalone-opt | FileCheck %s
+
+module {
+ // CHECK-LABEL: func @bar()
+ func @bar() {
+ %0 = constant 1 : i32
+ // CHECK: %{{.*}} = standalone.foo %{{.*}} : i32
+ %res = standalone.foo %0 : i32
+ return
+ }
+}
diff --git a/test/Standalone/standalone-opt.mlir b/test/Standalone/standalone-opt.mlir
new file mode 100644
index 0000000..1a78a9d
--- /dev/null
+++ b/test/Standalone/standalone-opt.mlir
@@ -0,0 +1,3 @@
+// RUN: standalone-opt --show-dialects | FileCheck %s
+// CHECK: Available Dialects:
+// CHECK: standalone
diff --git a/test/Standalone/standalone-translate.mlir b/test/Standalone/standalone-translate.mlir
new file mode 100644
index 0000000..16d4978
--- /dev/null
+++ b/test/Standalone/standalone-translate.mlir
@@ -0,0 +1,5 @@
+// RUN: standalone-translate --help | FileCheck %s
+// CHECK: --deserialize-spirv
+// CHECK: --import-llvm
+// CHECK: --mlir-to-llvmir
+// CHECK: --serialize-spirv