Skip to content

Commit 67e3a56

Browse files
committed
Use %if in simple.mlir
1 parent 1c50036 commit 67e3a56

File tree

1 file changed

+40
-8
lines changed

1 file changed

+40
-8
lines changed

mlir/test/mlir-cpu-runner/simple.mlir

Lines changed: 40 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,47 @@
1-
// RUN: mlir-cpu-runner %s -argext-abi-check=false | FileCheck %s
2-
// RUN: mlir-cpu-runner %s -e foo -argext-abi-check=false | FileCheck -check-prefix=NOMAIN %s
3-
// RUN: mlir-cpu-runner %s --entry-point-result=i32 -e int32_main -argext-abi-check=false | FileCheck -check-prefix=INT32MAIN %s
4-
// RUN: mlir-cpu-runner %s --entry-point-result=i64 -e int64_main -argext-abi-check=false | FileCheck -check-prefix=INT64MAIN %s
5-
// RUN: mlir-cpu-runner %s -O3 -argext-abi-check=false | FileCheck %s
1+
// RUN: %if target={{s390x-.*}} %{ \
2+
// RUN: mlir-cpu-runner %s -argext-abi-check=false | FileCheck %s \
3+
// RUN: %} %else %{ \
4+
// RUN: mlir-cpu-runner %s | FileCheck %s \
5+
// RUN: %}
6+
7+
// RUN: %if target={{s390x-.*}} %{ \
8+
// RUN: mlir-cpu-runner %s -e foo -argext-abi-check=false | FileCheck -check-prefix=NOMAIN %s \
9+
// RUN: %} %else %{ \
10+
// RUN: mlir-cpu-runner %s -e foo | FileCheck -check-prefix=NOMAIN %s \
11+
// RUN: %}
12+
13+
// RUN: %if target={{s390x-.*}} %{ \
14+
// RUN: mlir-cpu-runner %s --entry-point-result=i32 -e int32_main -argext-abi-check=false | FileCheck -check-prefix=INT32MAIN %s \
15+
// RUN: %} %else %{ \
16+
// RUN: mlir-cpu-runner %s --entry-point-result=i32 -e int32_main | FileCheck -check-prefix=INT32MAIN %s \
17+
// RUN: %}
18+
19+
// RUN: %if target={{s390x-.*}} %{ \
20+
// RUN: mlir-cpu-runner %s --entry-point-result=i64 -e int64_main -argext-abi-check=false | FileCheck -check-prefix=INT64MAIN %s \
21+
// RUN: %} %else %{ \
22+
// RUN: mlir-cpu-runner %s --entry-point-result=i64 -e int64_main | FileCheck -check-prefix=INT64MAIN %s \
23+
// RUN: %}
24+
25+
// RUN: %if target={{s390x-.*}} %{ \
26+
// RUN: mlir-cpu-runner %s -O3 -argext-abi-check=false | FileCheck %s \
27+
// RUN: %} %else %{ \
28+
// RUN: mlir-cpu-runner %s -O3 | FileCheck %s \
29+
// RUN: %}
630

731
// RUN: cp %s %t
8-
// RUN: mlir-cpu-runner %t -dump-object-file -argext-abi-check=false | FileCheck %t
32+
// RUN: %if target={{s390x-.*}} %{ \
33+
// RUN: mlir-cpu-runner %t -dump-object-file -argext-abi-check=false | FileCheck %t \
34+
// RUN: %} %else %{ \
35+
// RUN: mlir-cpu-runner %t -dump-object-file | FileCheck %t \
36+
// RUN: %}
37+
938
// RUN: ls %t.o
1039
// RUN: rm %t.o
11-
12-
// RUN: mlir-cpu-runner %s -dump-object-file -object-filename=%T/test.o -argext-abi-check=false | FileCheck %s
40+
// RUN: %if target={{s390x-.*}} %{ \
41+
// RUN: mlir-cpu-runner %s -dump-object-file -object-filename=%T/test.o -argext-abi-check=false | FileCheck %s \
42+
// RUN: %} %else %{ \
43+
// RUN: mlir-cpu-runner %s -dump-object-file -object-filename=%T/test.o | FileCheck %s \
44+
// RUN: %}
1345
// RUN: ls %T/test.o
1446
// RUN: rm %T/test.o
1547

0 commit comments

Comments
 (0)