Skip to content

Commit f6bf3e0

Browse files
committed
Rework uses of %if
1 parent 67e3a56 commit f6bf3e0

File tree

1 file changed

+15
-40
lines changed

1 file changed

+15
-40
lines changed

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

Lines changed: 15 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,22 @@
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: %}
1+
// RUN: mlir-cpu-runner %s %if target={{s390x-.*}} %{ -argext-abi-check=false %} \
2+
// RUN: | FileCheck %s
3+
// RUN: mlir-cpu-runner %s -e foo %if target={{s390x-.*}} %{ -argext-abi-check=false %} \
4+
// RUN: | FileCheck -check-prefix=NOMAIN %s
5+
// RUN: mlir-cpu-runner %s --entry-point-result=i32 -e int32_main %if target={{s390x-.*}} \
6+
// RUN: %{ -argext-abi-check=false %} | FileCheck -check-prefix=INT32MAIN %s
7+
// RUN: mlir-cpu-runner %s --entry-point-result=i64 -e int64_main %if target={{s390x-.*}} \
8+
// RUN: %{ -argext-abi-check=false %} | FileCheck -check-prefix=INT64MAIN %s
9+
// RUN: mlir-cpu-runner %s -O3 %if target={{s390x-.*}} %{ -argext-abi-check=false %} \
10+
// RUN: | FileCheck %s
3011

3112
// RUN: cp %s %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-
13+
// RUN: mlir-cpu-runner %t -dump-object-file %if target={{s390x-.*}} \
14+
// RUN: %{ -argext-abi-check=false %} | FileCheck %t
3815
// RUN: ls %t.o
3916
// RUN: rm %t.o
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: %}
17+
18+
// RUN: mlir-cpu-runner %s -dump-object-file -object-filename=%T/test.o \
19+
// RUN: %if target={{s390x-.*}} %{ -argext-abi-check=false %} | FileCheck %s
4520
// RUN: ls %T/test.o
4621
// RUN: rm %T/test.o
4722

0 commit comments

Comments
 (0)