Skip to content

Commit c4976f4

Browse files
author
klensy
committed
clang filecheck typos fix moved from llvm#91854
1 parent 7612dcc commit c4976f4

17 files changed

+2250
-2250
lines changed

clang-tools-extra/test/clang-tidy/checkers/modernize/redundant-void-arg.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,8 @@ void gronk::bar(void) {
306306
// CHECK-MESSAGES: :[[@LINE-2]]:11: warning: {{.*}} in variable declaration
307307
// CHECK-FIXES: {{^ }}void (gronk::*p5){{$}}
308308
// CHECK-FIXES-NEXT: {{^ \($}}
309-
// CHECK-FIXES-NExT: {{^ $}}
310-
// CHECK-FIXES-NExT: {{^ \);$}}
309+
// CHECK-FIXES-NEXT: {{^ $}}
310+
// CHECK-FIXES-NEXT: {{^ \);$}}
311311
}
312312

313313
// intentionally not LLVM style to check preservation of whitespace

clang/test/CodeGen/PowerPC/ppc-tmmintrin.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ test_alignr() {
7171
// CHECK-BE: call <16 x i8> @vec_sld(unsigned char vector[16], unsigned char vector[16], unsigned int)
7272
// CHECK-LE: call <16 x i8> @vec_reve(unsigned char vector[16])
7373
// CHECK-LE: call <16 x i8> @vec_reve(unsigned char vector[16])
74-
// CHECk-LE: call <16 x i8> @vec_sld(unsigned char vector[16], unsigned char vector[16], unsigned int)
74+
// CHECK-LE: call <16 x i8> @vec_sld(unsigned char vector[16], unsigned char vector[16], unsigned int)
7575
// CHECK-LE: call <16 x i8> @vec_reve(unsigned char vector[16])
7676
// CHECK: store <16 x i8> zeroinitializer, ptr %{{[0-9a-zA-Z_.]+}}, align 16
7777
// CHECK: store <2 x i64> zeroinitializer, ptr %{{[0-9a-zA-Z_.]+}}, align 16

clang/test/CodeGen/X86/avx-builtins.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1833,14 +1833,14 @@ void test_mm256_storeu_pd(double* A, __m256d B) {
18331833
void test_mm256_storeu_ps(float* A, __m256 B) {
18341834
// CHECK-LABEL: test_mm256_storeu_ps
18351835
// CHECK: store <8 x float> %{{.*}}, ptr %{{.*}}, align 1{{$}}
1836-
// CHECk-NEXT: ret void
1836+
// CHECK-NEXT: ret void
18371837
_mm256_storeu_ps(A, B);
18381838
}
18391839

18401840
void test_mm256_storeu_si256(__m256i* A, __m256i B) {
18411841
// CHECK-LABEL: test_mm256_storeu_si256
18421842
// CHECK: store <4 x i64> %{{.*}}, ptr %{{.*}}, align 1{{$}}
1843-
// CHECk-NEXT: ret void
1843+
// CHECK-NEXT: ret void
18441844
_mm256_storeu_si256(A, B);
18451845
}
18461846

clang/test/CodeGen/X86/avx512vl-builtins.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7021,8 +7021,8 @@ void test_mm256_mask_store_ps(void *__P, __mmask8 __U, __m256 __A) {
70217021
}
70227022

70237023
void test_mm_storeu_epi64(void *__p, __m128i __a) {
7024-
// check-label: @test_mm_storeu_epi64
7025-
// check: store <2 x i64> %{{.*}}, ptr %{{.*}}, align 1{{$}}
7024+
// CHECK-LABEL: @test_mm_storeu_epi64
7025+
// CHECK: store <2 x i64> %{{.*}}, ptr %{{.*}}, align 1{{$}}
70267026
return _mm_storeu_epi64(__p, __a);
70277027
}
70287028

clang/test/CodeGen/X86/avx512vlbw-builtins.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2570,8 +2570,8 @@ __m256i test_mm256_maskz_loadu_epi8(__mmask32 __U, void const *__P) {
25702570
}
25712571

25722572
void test_mm_storeu_epi16(void *__p, __m128i __a) {
2573-
// check-label: @test_mm_storeu_epi16
2574-
// check: store <2 x i64> %{{.*}}, ptr %{{.*}}, align 1{{$}}
2573+
// CHECK-LABEL: @test_mm_storeu_epi16
2574+
// CHECK: store <2 x i64> %{{.*}}, ptr %{{.*}}, align 1{{$}}
25752575
return _mm_storeu_epi16(__p, __a);
25762576
}
25772577

@@ -2594,8 +2594,8 @@ void test_mm256_mask_storeu_epi16(void *__P, __mmask16 __U, __m256i __A) {
25942594
}
25952595

25962596
void test_mm_storeu_epi8(void *__p, __m128i __a) {
2597-
// check-label: @test_mm_storeu_epi8
2598-
// check: store <2 x i64> %{{.*}}, ptr %{{.*}}, align 1{{$}}
2597+
// CHECK-LABEL: @test_mm_storeu_epi8
2598+
// CHECK: store <2 x i64> %{{.*}}, ptr %{{.*}}, align 1{{$}}
25992599
return _mm_storeu_epi8(__p, __a);
26002600
}
26012601

clang/test/CodeGen/constantexpr-fneg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// Test case for PR45426. Make sure we do not crash while writing bitcode
55
// containing a simplify-able fneg constant expression.
66
//
7-
// CHECK-LABEL define i32 @main()
7+
// CHECK-LABEL: define{{.*}} i32 @main()
88
// CHECK: entry:
99
// CHECK-NEXT: %retval = alloca i32
1010
// CHECK-NEXT: store i32 0, ptr %retval

clang/test/CodeGen/fp-floatcontrol-pragma.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,15 +150,15 @@ float check_precise(float x, float y) {
150150
}
151151

152152
float fma_test2(float a, float b, float c) {
153-
// CHECK-LABEL define{{.*}} float @_Z9fma_test2fff{{.*}}
153+
// CHECK-LABEL: define{{.*}} float @_Z9fma_test2fff{{.*}}
154154
#pragma float_control(precise, off)
155155
float x = a * b + c;
156156
//CHECK: fmuladd
157157
return x;
158158
}
159159

160160
float fma_test1(float a, float b, float c) {
161-
// CHECK-LABEL define{{.*}} float @_Z9fma_test1fff{{.*}}
161+
// CHECK-LABEL: define{{.*}} float @_Z9fma_test1fff{{.*}}
162162
#pragma float_control(precise, on)
163163
float x = a * b + c;
164164
//CHECK: fmuladd
@@ -181,7 +181,7 @@ float test_OperatorCall() {
181181
return add(1.0f, 2.0f);
182182
//CHECK: llvm.experimental.constrained.fadd{{.*}}fpexcept.strict
183183
}
184-
// CHECK-LABEL define{{.*}} float {{.*}}test_OperatorCall{{.*}}
184+
// CHECK-LABEL: define{{.*}} float {{.*}}test_OperatorCall{{.*}}
185185

186186
#if FENV_ON
187187
#pragma STDC FENV_ACCESS ON

clang/test/CodeGen/paren-list-agg-init.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ void foo18() {
377377
// CHECK-NEXT: [[A:%.*a.*]] = getelementptr inbounds nuw [[STRUCT_G]], ptr [[G]], i32 0, i32 0
378378
// CHECK-NEXT: store i32 2, ptr [[A]], align 4
379379
// CHECK-NEXT: [[F:%.*]] = getelementptr inbounds i8, ptr [[G]], i64 4
380-
// CHECk-NEXT: call void @{{.*F.*}}(ptr noundef nonnull align 1 dereferenceable(1)) [[F]], ie32 noundef 1)
380+
// CHECK-NEXT: call void @_ZN1FC1Ei(ptr noundef nonnull align 1 dereferenceable(1) [[F]], i32 noundef 1)
381381
// CHECK: ret void
382382
void foo19() {
383383
G g(2);

clang/test/CodeGenCXX/microsoft-abi-throw.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// CHECK-DAG: @"_TI5?AUY@@" = linkonce_odr unnamed_addr constant %eh.ThrowInfo { i32 0, ptr @"??_DY@@QAEXXZ", ptr null, ptr @"_CTA5?AUY@@" }, section ".xdata", comdat
1515
// CHECK-DAG: @"_CT??_R0?AUDefault@@@8??_ODefault@@QAEXAAU0@@Z1" = linkonce_odr unnamed_addr constant %eh.CatchableType { i32 0, ptr @"??_R0?AUDefault@@@8", i32 0, i32 -1, i32 0, i32 1, ptr @"??_ODefault@@QAEXAAU0@@Z" }, section ".xdata", comdat
1616
// CHECK-DAG: @"_CT??_R0?AUDeletedCopy@@@81" = linkonce_odr unnamed_addr constant %eh.CatchableType { i32 0, ptr @"??_R0?AUDeletedCopy@@@8", i32 0, i32 -1, i32 0, i32 1, ptr null }, section ".xdata", comdat
17-
// CHECk-DAG: @"_CT??_R0?AUMoveOnly@@@84" = linkonce_odr unnamed_addr constant %eh.CatchableType { i32 0, ptr @"??_R0?AUMoveOnly@@@8", i32 0, i321-1, i32 0, i32 4, ptr null }, section ".xdata", comda
17+
// CHECK-DAG: @"_CT??_R0?AUMoveOnly@@@84" = linkonce_odr unnamed_addr constant %eh.CatchableType { i32 0, ptr @"??_R0?AUMoveOnly@@@8", i32 0, i321-1, i32 0, i32 4, ptr null }, section ".xdata", comdat
1818
// CHECK-DAG: @"_CT??_R0?AUVariadic@@@8??_OVariadic@@QAEXAAU0@@Z1" = linkonce_odr unnamed_addr constant %eh.CatchableType { i32 0, ptr @"??_R0?AUVariadic@@@8", i32 0, i32 -1, i32 0, i32 1, ptr @"??_OVariadic@@QAEXAAU0@@Z" }, section ".xdata", comdat
1919
// CHECK-DAG: @"_CT??_R0?AUTemplateWithDefault@@@8??$?_OH@TemplateWithDefault@@QAEXAAU0@@Z1" = linkonce_odr unnamed_addr constant %eh.CatchableType { i32 0, ptr @"??_R0?AUTemplateWithDefault@@@8", i32 0, i32 -1, i32 0, i32 1, ptr @"??$?_OH@TemplateWithDefault@@QAEXAAU0@@Z" }, section ".xdata", comdat
2020
// CHECK-DAG: @"_CTA2$$T" = linkonce_odr unnamed_addr constant %eh.CatchableTypeArray.2 { i32 2, [2 x ptr] [ptr @"_CT??_R0$$T@84", ptr @"_CT??_R0PAX@84"] }, section ".xdata", comdat

clang/test/CodeGenCXX/vtable-assume-load-address-space.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ void g(B *a) { a->foo(); }
112112
// CHECK3: call{{.*}} void @_ZN5test31CC1Ev(ptr
113113
// CHECK3: %[[CMP:.*]] = icmp eq ptr addrspace(1) %{{.*}}, getelementptr inbounds inrange(-24, 8) ({ [4 x ptr addrspace(1)] }, ptr addrspace(1) @_ZTVN5test31CE, i32 0, i32 0, i32 3)
114114
// CHECK3: call{{.*}} void @llvm.assume(i1 %[[CMP]])
115-
// CHECK3-LABLEL: }
115+
// CHECK3-LABEL: }
116116
void test() {
117117
C c;
118118
g(&c);

clang/test/CodeGenCXX/vtable-assume-load.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ void g(B *a) { a->foo(); }
111111
// CHECK3: call void @_ZN5test31CC1Ev(ptr
112112
// CHECK3: %[[CMP:.*]] = icmp eq ptr %{{.*}}, getelementptr inbounds inrange(-24, 8) ({ [4 x ptr] }, ptr @_ZTVN5test31CE, i32 0, i32 0, i32 3)
113113
// CHECK3: call void @llvm.assume(i1 %[[CMP]])
114-
// CHECK3-LABLEL: }
114+
// CHECK3-LABEL: }
115115
void test() {
116116
C c;
117117
g(&c);

clang/test/CodeGenOpenCL/builtins-amdgcn.cl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@ kernel void test_s_setreg(uint val) {
835835
__builtin_amdgcn_s_setreg(8193, val);
836836
}
837837

838-
// CHECK-LABEL test_atomic_inc_dec(
838+
// CHECK-LABEL: test_atomic_inc_dec(
839839
#if !defined(__SPIRV__)
840840
void test_atomic_inc_dec(local uint *lptr, global uint *gptr, uint val) {
841841
#else
@@ -863,15 +863,15 @@ void test_atomic_inc_dec(__attribute__((address_space(3))) uint *lptr, __attribu
863863
#endif
864864
}
865865

866-
// CHECK-LABEL test_wavefrontsize(
866+
// CHECK-LABEL: test_wavefrontsize(
867867
unsigned test_wavefrontsize() {
868868

869869
// CHECK-AMDGCN: ret i32 {{[0-9]+}}
870870
// CHECK-SPIRV: {{.*}}call{{.*}} i32 @llvm.amdgcn.wavefrontsize()
871871
return __builtin_amdgcn_wavefrontsize();
872872
}
873873

874-
// CHECK-LABEL test_flt_rounds(
874+
// CHECK-LABEL: test_flt_rounds(
875875
unsigned test_flt_rounds() {
876876

877877
// CHECK: {{.*}}call{{.*}} i32 @llvm.get.rounding()
@@ -885,13 +885,13 @@ unsigned test_flt_rounds() {
885885
return mode;
886886
}
887887

888-
// CHECK-LABEL test_get_fpenv(
888+
// CHECK-LABEL: test_get_fpenv(
889889
unsigned long test_get_fpenv() {
890890
// CHECK: {{.*}}call{{.*}} i64 @llvm.get.fpenv.i64()
891891
return __builtin_amdgcn_get_fpenv();
892892
}
893893

894-
// CHECK-LABEL test_set_fpenv(
894+
// CHECK-LABEL: test_set_fpenv(
895895
void test_set_fpenv(unsigned long env) {
896896
// CHECK: {{.*}}call{{.*}} void @llvm.set.fpenv.i64(i64 %[[ENV:.+]])
897897
__builtin_amdgcn_set_fpenv(env);

clang/test/Driver/baremetal-sysroot.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// RUN: | FileCheck --check-prefix=CHECK-V6M-C %s
1515
// CHECK-V6M-C: "{{.*}}clang{{.*}}" "-cc1" "-triple" "thumbv6m-unknown-none-eabi"
1616
// CHECK-V6M-C-SAME: "-internal-isystem" "{{.*}}/baremetal_default_sysroot{{[/\\]+}}bin{{[/\\]+}}..{{[/\\]+}}lib{{[/\\]+}}clang-runtimes{{[/\\]+}}armv6m-none-eabi{{[/\\]+}}include{{[/\\]+}}c++{{[/\\]+}}v1"
17-
// CHECk-V6M-C-SAME: "-internal-isystem" "{{.*}}/baremetal_default_sysroot{{[/\\]+}}bin{{[/\\]+}}..{{[/\\]+}}lib{{[/\\]+}}clang-runtimes{{[/\\]+}}armv6m-none-eabi{{[/\\]+}}include"
17+
// CHECK-V6M-C-SAME: "-internal-isystem" "{{.*}}/baremetal_default_sysroot{{[/\\]+}}bin{{[/\\]+}}..{{[/\\]+}}lib{{[/\\]+}}clang-runtimes{{[/\\]+}}armv6m-none-eabi{{[/\\]+}}include"
1818
// CHECK-V6M-C-SAME: "-x" "c++" "{{.*}}baremetal-sysroot.cpp"
1919
// CHECK-V6M-C-NEXT: "{{[^"]*}}ld{{(\.(lld|bfd|gold))?}}{{(\.exe)?}}" "{{.*}}.o" "-Bstatic"
2020
// CHECK-V6M-C-SAME: "-L{{.*}}/baremetal_default_sysroot{{[/\\]+}}bin{{[/\\]+}}..{{[/\\]+}}lib{{[/\\]+}}clang-runtimes{{[/\\]+}}armv6m-none-eabi{{[/\\]+}}lib"

clang/test/Driver/baremetal.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@
203203
// CHECK-RV64-SAME: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]"
204204
// CHECK-RV64-SAME: "-isysroot" "[[SYSROOT:[^"]*]]"
205205
// CHECK-RV64-SAME: "-internal-isystem" "[[SYSROOT]]{{[/\\]+}}include{{[/\\]+}}c++{{[/\\]+}}v1"
206-
// CHECk-RV64-SAME: "-internal-isystem" "[[SYSROOT]]{{[/\\]+}}include"
206+
// CHECK-RV64-SAME: "-internal-isystem" "[[SYSROOT]]{{[/\\]+}}include"
207207
// CHECK-RV64-SAME: "-x" "c++" "{{.*}}baremetal.cpp"
208208
// CHECK-RV64-NEXT: ld{{(.exe)?}}" "{{.*}}.o" "-Bstatic"
209209
// CHECK-RV64-SAME: "-Lsome{{[/\\]+}}directory{{[/\\]+}}user{{[/\\]+}}asked{{[/\\]+}}for"
@@ -337,7 +337,7 @@
337337
// CHECK-RV64FD-SAME: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]"
338338
// CHECK-RV64FD-SAME: "-isysroot" "[[SYSROOT:[^"]*]]"
339339
// CHECK-RV64FD-SAME: "-internal-isystem" "[[SYSROOT]]{{[/\\]+}}rv64imafdc{{[/\\]+}}lp64d{{[/\\]+}}include{{[/\\]+}}c++{{[/\\]+}}v1"
340-
// CHECk-RV64FD-SAME: "-internal-isystem" "[[SYSROOT]]{{[/\\]+}}rv64imafdc{{[/\\]+}}lp64d{{[/\\]+}}include"
340+
// CHECK-RV64FD-SAME: "-internal-isystem" "[[SYSROOT]]{{[/\\]+}}rv64imafdc{{[/\\]+}}lp64d{{[/\\]+}}include"
341341
// CHECK-RV64FD-SAME: "-x" "c++" "{{.*}}baremetal.cpp"
342342
// CHECK-RV64FD-NEXT: ld{{(.exe)?}}" "{{.*}}.o" "-Bstatic"
343343
// CHECK-RV64FD-SAME: "-L[[SYSROOT:[^"]+]]{{[/\\]+}}rv64imafdc{{[/\\]+}}lp64d{{[/\\]+}}lib"

clang/test/Driver/save-stats.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
// CHECK: "{{.*}}save-stats.c"
55

66
// RUN: %clang -target x86_64-apple-darwin -S %s -### 2>&1 | FileCheck %s -check-prefix=NO-STATS
7-
// NO-STATS-NO: -stats-file
7+
// NO-STATS-NOT: -stats-file
88
// NO-STATS: "{{.*}}save-stats.c"
9-
// NO-STATS-NO: -stats-file
9+
// NO-STATS-NOT: -stats-file
1010

1111
// RUN: %clang -target x86_64-apple-darwin -save-stats=obj -c -o obj/dir/save-stats.o %s -### 2>&1 | FileCheck %s -check-prefix=CHECK-OBJ
1212
// CHECK-OBJ: "-stats-file=obj/dir{{/|\\\\}}save-stats.stats"
@@ -49,7 +49,7 @@
4949
// RUN: env CC_PRINT_INTERNAL_STAT=1 \
5050
// RUN: %clang -target x86_64-apple-darwin %s -### 2>&1 | FileCheck %s -check-prefix=CHECK-ENV
5151
// CHECK-ENV: "-stats-file=-"
52-
// CHECK-ENV-NO: "stats-file-append"
52+
// CHECK-ENV-NOT: "stats-file-append"
5353

5454
// RUN: env CC_PRINT_INTERNAL_STAT=1 \
5555
// RUN: CC_PRINT_INTERNAL_STAT_FILE=/tmp/stats.json \

clang/test/Misc/pragma-attribute-strict-subjects.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ struct testRecoverExtraStruct { };
6868

6969
enum testNoEnumAbiTag { CaseCase };
7070
// CHECK-LABEL: EnumDecl{{.*}} testNoEnumAbiTag
71-
// CHECK-NO: AbiTagAttr
71+
// CHECK-NOT: AbiTagAttr
7272

7373
#pragma clang attribute pop
7474

0 commit comments

Comments
 (0)