Skip to content

Commit 74b933c

Browse files
authored
[LoongArch][clang] Modify loongarch-msimd.c to avoid grep -o. NFC (#98442)
Address buildbot failure: https://lab.llvm.org/buildbot/#/builders/64/builds/250/steps/6/logs/FAIL__Clang__loongarch-msimd_c
1 parent 18e70a4 commit 74b933c

File tree

1 file changed

+4
-38
lines changed

1 file changed

+4
-38
lines changed

clang/test/Driver/loongarch-msimd.c

Lines changed: 4 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -2,128 +2,94 @@
22

33
/// COM: -msimd=none
44
// RUN: %clang --target=loongarch64 -mlasx -msimd=none -fsyntax-only %s -### 2>&1 | \
5-
// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \
65
// RUN: FileCheck %s --check-prefixes=LSX,LASX
76
// RUN: %clang --target=loongarch64 -mlasx -mlsx -msimd=none -fsyntax-only %s -### 2>&1 | \
8-
// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \
97
// RUN: FileCheck %s --check-prefixes=LSX,LASX
108

119
// RUN: %clang --target=loongarch64 -msimd=none -fsyntax-only %s -### 2>&1 | \
12-
// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \
1310
// RUN: FileCheck %s --check-prefixes=NOLSX,NOLASX
1411
// RUN: %clang --target=loongarch64 -mlasx -mno-lasx -msimd=none -fsyntax-only %s -### 2>&1 | \
15-
// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \
1612
// RUN: FileCheck %s --check-prefixes=NOLSX,NOLASX
1713
// RUN: %clang --target=loongarch64 -mlasx -mno-lasx -mlsx -mno-lsx -msimd=none -fsyntax-only %s -### 2>&1 | \
18-
// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \
1914
// RUN: FileCheck %s --check-prefixes=NOLSX,NOLASX
2015
// RUN: %clang --target=loongarch64 -mlasx -mno-lasx -mno-lsx -msimd=none -fsyntax-only %s -### 2>&1 | \
21-
// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \
2216
// RUN: FileCheck %s --check-prefixes=NOLSX,NOLASX
2317
// RUN: %clang --target=loongarch64 -mlsx -mno-lsx -msimd=none -fsyntax-only %s -### 2>&1 | \
24-
// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \
2518
// RUN: FileCheck %s --check-prefixes=NOLSX,NOLASX
2619
// RUN: %clang --target=loongarch64 -mno-lasx -msimd=none -fsyntax-only %s -### 2>&1 | \
27-
// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \
2820
// RUN: FileCheck %s --check-prefixes=NOLSX,NOLASX
2921
// RUN: %clang --target=loongarch64 -mno-lasx -mlsx -mno-lsx -msimd=none -fsyntax-only %s -### 2>&1 | \
30-
// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \
3122
// RUN: FileCheck %s --check-prefixes=NOLSX,NOLASX
3223
// RUN: %clang --target=loongarch64 -mno-lasx -mno-lsx -msimd=none -fsyntax-only %s -### 2>&1 | \
33-
// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \
3424
// RUN: FileCheck %s --check-prefixes=NOLSX,NOLASX
3525
// RUN: %clang --target=loongarch64 -mno-lsx -msimd=none -fsyntax-only %s -### 2>&1 | \
36-
// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \
3726
// RUN: FileCheck %s --check-prefixes=NOLSX,NOLASX
3827

3928
// RUN: %clang --target=loongarch64 -mlasx -mno-lasx -mlsx -msimd=none -fsyntax-only %s -### 2>&1 | \
40-
// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \
4129
// RUN: FileCheck %s --check-prefixes=LSX,NOLASX
4230
// RUN: %clang --target=loongarch64 -mno-lasx -mlsx -msimd=none -fsyntax-only %s -### 2>&1 | \
43-
// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \
4431
// RUN: FileCheck %s --check-prefixes=LSX,NOLASX
4532
// RUN: %clang --target=loongarch64 -mlsx -msimd=none -fsyntax-only %s -### 2>&1 | \
46-
// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \
4733
// RUN: FileCheck %s --check-prefixes=LSX,NOLASX
4834

4935

5036
/// COM: -msimd=lsx
5137
// RUN: %clang --target=loongarch64 -mlasx -msimd=lsx -fsyntax-only %s -### 2>&1 | \
52-
// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \
5338
// RUN: FileCheck %s --check-prefixes=LSX,LASX
5439
// RUN: %clang --target=loongarch64 -mlasx -mlsx -msimd=lsx -fsyntax-only %s -### 2>&1 | \
55-
// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \
5640
// RUN: FileCheck %s --check-prefixes=LSX,LASX
5741

5842
// RUN: %clang --target=loongarch64 -mlasx -mno-lasx -mno-lsx -msimd=lsx -fsyntax-only %s -### 2>&1 | \
59-
// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \
6043
// RUN: FileCheck %s --check-prefixes=NOLSX,NOLASX
6144
// RUN: %clang --target=loongarch64 -mlsx -mno-lsx -msimd=lsx -fsyntax-only %s -### 2>&1 | \
62-
// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \
6345
// RUN: FileCheck %s --check-prefixes=NOLSX,NOLASX
6446
// RUN: %clang --target=loongarch64 -mno-lasx -mlsx -mno-lsx -msimd=lsx -fsyntax-only %s -### 2>&1 | \
65-
// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \
6647
// RUN: FileCheck %s --check-prefixes=NOLSX,NOLASX
6748
// RUN: %clang --target=loongarch64 -mno-lasx -mno-lsx -msimd=lsx -fsyntax-only %s -### 2>&1 | \
68-
// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \
6949
// RUN: FileCheck %s --check-prefixes=NOLSX,NOLASX
7050
// RUN: %clang --target=loongarch64 -mno-lsx -msimd=lsx -fsyntax-only %s -### 2>&1 | \
71-
// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \
7251
// RUN: FileCheck %s --check-prefixes=NOLSX,NOLASX
7352
// RUN: %clang --target=loongarch64 -mlasx -mno-lasx -mlsx -mno-lsx -msimd=lsx -fsyntax-only %s -### 2>&1 | \
74-
// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \
7553
// RUN: FileCheck %s --check-prefixes=NOLSX,NOLASX
7654

7755
// RUN: %clang --target=loongarch64 -msimd=lsx -fsyntax-only %s -### 2>&1 | \
78-
// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \
7956
// RUN: FileCheck %s --check-prefixes=LSX,NOLASX
8057
// RUN: %clang --target=loongarch64 -mlasx -mno-lasx -msimd=lsx -fsyntax-only %s -### 2>&1 | \
81-
// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \
8258
// RUN: FileCheck %s --check-prefixes=LSX,NOLASX
8359
// RUN: %clang --target=loongarch64 -mlsx -msimd=lsx -fsyntax-only %s -### 2>&1 | \
84-
// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \
8560
// RUN: FileCheck %s --check-prefixes=LSX,NOLASX
8661
// RUN: %clang --target=loongarch64 -mno-lasx -msimd=lsx -fsyntax-only %s -### 2>&1 | \
87-
// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \
8862
// RUN: FileCheck %s --check-prefixes=LSX,NOLASX
8963
// RUN: %clang --target=loongarch64 -mno-lasx -mlsx -msimd=lsx -fsyntax-only %s -### 2>&1 | \
90-
// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \
9164
// RUN: FileCheck %s --check-prefixes=LSX,NOLASX
9265

9366

9467
/// COM: -msimd=lasx
9568
// RUN: %clang --target=loongarch64 -msimd=lasx -fsyntax-only %s -### 2>&1 | \
96-
// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \
9769
// RUN: FileCheck %s --check-prefixes=LSX,LASX
9870
// RUN: %clang --target=loongarch64 -mlasx -msimd=lasx -fsyntax-only %s -### 2>&1 | \
99-
// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \
10071
// RUN: FileCheck %s --check-prefixes=LSX,LASX
10172
// RUN: %clang --target=loongarch64 -mlasx -mlsx -msimd=lasx -fsyntax-only %s -### 2>&1 | \
102-
// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \
10373
// RUN: FileCheck %s --check-prefixes=LSX,LASX
10474
// RUN: %clang --target=loongarch64 -mlsx -msimd=lasx -fsyntax-only %s -### 2>&1 | \
105-
// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \
10675
// RUN: FileCheck %s --check-prefixes=LSX,LASX
10776

10877
// RUN: %clang --target=loongarch64 -mlasx -mno-lasx -msimd=lasx -fsyntax-only %s -### 2>&1 | \
109-
// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \
11078
// RUN: FileCheck %s --check-prefixes=NOLSX,NOLASX
11179
// RUN: %clang --target=loongarch64 -mno-lasx -msimd=lasx -fsyntax-only %s -### 2>&1 | \
112-
// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \
11380
// RUN: FileCheck %s --check-prefixes=NOLSX,NOLASX
11481

11582
// RUN: %clang --target=loongarch64 -mlasx -mno-lasx -mlsx -msimd=lasx -fsyntax-only %s -### 2>&1 | \
116-
// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \
11783
// RUN: FileCheck %s --check-prefixes=LSX,NOLASX
11884
// RUN: %clang --target=loongarch64 -mno-lasx -mlsx -msimd=lasx -fsyntax-only %s -### 2>&1 | \
119-
// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \
12085
// RUN: FileCheck %s --check-prefixes=LSX,NOLASX
12186
// RUN: %clang --target=loongarch64 -mlasx -mno-lasx -mlsx -msimd=lsx -fsyntax-only %s -### 2>&1 | \
122-
// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \
12387
// RUN: FileCheck %s --check-prefixes=LSX,NOLASX
12488

12589

126-
// LSX: "-target-feature" "+lsx"
127-
// LASX: "-target-feature" "+lasx"
90+
// NOLSX-NOT: "-target-feature" "+lsx"
91+
// NOLASX-NOT: "-target-feature" "+lasx"
92+
// LSX-DAG: "-target-feature" "+lsx"
93+
// LASX-DAG: "-target-feature" "+lasx"
12894
// NOLSX-NOT: "-target-feature" "+lsx"
12995
// NOLASX-NOT: "-target-feature" "+lasx"

0 commit comments

Comments
 (0)