Skip to content

Commit 41f4482

Browse files
zahiraamjsji
authored andcommitted
Fix LIT regressions after pulldown. (#32439)
Added `-Wno-incompatible-pointer-types` to the tests to avoid `incompatible pointer types` error. Guilty commit b247698
1 parent 38d58ed commit 41f4482

File tree

1 file changed

+20
-11
lines changed

1 file changed

+20
-11
lines changed

clang/test/CodeGen/fp-accuracy.c

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,59 @@
1+
// INTEL_CUSTOMIZATION
12
// RUN: %clang_cc1 -triple x86_64-unknown-unknown -ffp-builtin-accuracy=high \
2-
// RUN: -Wno-return-type -Wno-implicit-function-declaration -emit-llvm -o - %s \
3+
// RUN: -Wno-return-type -Wno-implicit-function-declaration \
4+
// RUN: -Wno-incompatible-pointer-types -emit-llvm -o - %s \
35
// RUN: | FileCheck --check-prefixes=CHECK %s
46

57
// RUN: %clang_cc1 -triple x86_64-unknown-unknown \
68
// RUN: "-ffp-builtin-accuracy=high:[acosf,cos,pow] low:[tan] medium:[sincos,log10]" \
79
// RUN: -Wno-return-type -Wno-implicit-function-declaration \
8-
// RUN: -emit-llvm -o - %s | FileCheck --check-prefix=CHECK-F1 %s
10+
// RUN: -Wno-incompatible-pointer-types -emit-llvm -o - %s \
11+
// RUN: | FileCheck --check-prefix=CHECK-F1 %s
912

1013
// RUN: %clang_cc1 -triple x86_64-unknown-unknown \
1114
// RUN: "-ffp-builtin-accuracy=medium high:[tan] cuda:[cos]" \
12-
// RUN: -Wno-return-type -Wno-implicit-function-declaration -emit-llvm -o - %s \
15+
// RUN: -Wno-return-type -Wno-implicit-function-declaration \
16+
// RUN: -Wno-incompatible-pointer-types -emit-llvm -o - %s \
1317
// RUN: | FileCheck --check-prefix=CHECK-F2 %s
1418

1519
// RUN: %clang_cc1 -triple x86_64-unknown-unknown \
1620
// RUN: "-ffp-builtin-accuracy=high low:[tan] medium:[sincos,log10]" \
17-
// RUN: -Wno-return-type -Wno-implicit-function-declaration -emit-llvm -o - %s \
21+
// RUN: -Wno-return-type -Wno-implicit-function-declaration \
22+
// RUN: -Wno-incompatible-pointer-types -emit-llvm -o - %s \
1823
// RUN: | FileCheck --check-prefix=CHECK-F3 %s
1924

2025
// RUN: %clang_cc1 -triple x86_64-unknown-unknown \
2126
// RUN: "-ffp-builtin-accuracy=high:sin medium" -Wno-return-type \
22-
// RUN: -Wno-implicit-function-declaration -emit-llvm -o - %s \
23-
// RUN: | FileCheck --check-prefixes=CHECK-F4 %s
27+
// RUN: -Wno-implicit-function-declaration -Wno-incompatible-pointer-types \
28+
// RUN: -emit-llvm -o - %s | FileCheck --check-prefixes=CHECK-F4 %s
2429

2530
// RUN: %clang_cc1 -triple x86_64-unknown-unknown \
2631
// RUN: "-ffp-builtin-accuracy=medium:[sin,cos] high:[sin,tan]" \
2732
// RUN: -Wno-return-type -Wno-implicit-function-declaration \
28-
// RUN: -emit-llvm -o - %s | FileCheck --check-prefixes=CHECK-F5 %s
33+
// RUN: -Wno-incompatible-pointer-types -emit-llvm -o - %s \
34+
// RUN: | FileCheck --check-prefixes=CHECK-F5 %s
2935

3036
// RUN: %clang_cc1 -triple x86_64-unknown-unknown \
3137
// RUN: "-ffp-builtin-accuracy=medium high:[sin,atan] low:[atan2]" \
3238
// RUN: -Wno-return-type -Wno-implicit-function-declaration \
33-
// RUN: -emit-llvm -o - %s | FileCheck --check-prefixes=CHECK-F6 %s
39+
// RUN: -Wno-incompatible-pointer-types -emit-llvm -o - %s \
40+
// RUN: | FileCheck --check-prefixes=CHECK-F6 %s
3441

3542
// RUN: %clang_cc1 -triple spir64-unknown-unknown -ffp-builtin-accuracy=sycl \
3643
// RUN: -D SPIR -Wno-implicit-function-declaration -emit-llvm -o - %s \
3744
// RUN: | FileCheck --check-prefix=CHECK-SPIR %s
3845

3946
// RUN: %clang_cc1 -triple x86_64-unknown-unknown \
4047
// RUN: "-ffp-builtin-accuracy=default:[acosf,cos,pow]" \
41-
// RUN: -Wno-return-type -Wno-implicit-function-declaration -emit-llvm -o - %s \
48+
// RUN: -Wno-return-type -Wno-implicit-function-declaration \
49+
// RUN: -Wno-incompatible-pointer-types -emit-llvm -o - %s \
4250
// RUN: | FileCheck --check-prefixes=CHECK-DEFAULT %s
4351

4452
// RUN: %clang_cc1 -triple x86_64-unknown-unknown \
45-
// RUN: -Wno-return-type -Wno-implicit-function-declaration -emit-llvm -o - %s \
53+
// RUN: -Wno-return-type -Wno-implicit-function-declaration \
54+
// RUN: -Wno-incompatible-pointer-types -emit-llvm -o - %s \
4655
// RUN: | FileCheck --check-prefixes=CHECK-DEFAULT %s
47-
56+
// end INTEL_CUSTOMIZATION
4857
#ifdef SPIR
4958
// This is a declaration when compiling with -fsycl to avoid
5059
// the compilation error "function with no prototype cannot use

0 commit comments

Comments
 (0)