Skip to content

Commit d7be9d2

Browse files
authored
PS support for erf/erff/erfl. (#88412)
Co-authored-by: Sunil Srivastava <[email protected]>
1 parent 9029e6e commit d7be9d2

File tree

2 files changed

+17
-8
lines changed

2 files changed

+17
-8
lines changed

llvm/lib/Analysis/TargetLibraryInfo.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -813,9 +813,6 @@ static void initialize(TargetLibraryInfoImpl &TLI, const Triple &T,
813813
TLI.setUnavailable(LibFunc_cabs);
814814
TLI.setUnavailable(LibFunc_cabsf);
815815
TLI.setUnavailable(LibFunc_cabsl);
816-
TLI.setUnavailable(LibFunc_erf);
817-
TLI.setUnavailable(LibFunc_erff);
818-
TLI.setUnavailable(LibFunc_erfl);
819816
TLI.setUnavailable(LibFunc_ffs);
820817
TLI.setUnavailable(LibFunc_flockfile);
821818
TLI.setUnavailable(LibFunc_fseeko);

llvm/test/tools/llvm-tli-checker/ps4-tli-check.yaml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,23 +34,23 @@
3434
#
3535
# CHECK: << Total TLI yes SDK no: 8
3636
# CHECK: >> Total TLI no SDK yes: 0
37-
# CHECK: == Total TLI yes SDK yes: 235
37+
# CHECK: == Total TLI yes SDK yes: 238
3838
#
3939
# WRONG_DETAIL: << TLI yes SDK no : '_ZdaPv' aka operator delete[](void*)
4040
# WRONG_DETAIL: >> TLI no SDK yes: '_ZdaPvj' aka operator delete[](void*, unsigned int)
4141
# WRONG_DETAIL-COUNT-8: << TLI yes SDK no : {{.*}}__hot_cold_t
4242
# WRONG_SUMMARY: << Total TLI yes SDK no: 9{{$}}
4343
# WRONG_SUMMARY: >> Total TLI no SDK yes: 1{{$}}
44-
# WRONG_SUMMARY: == Total TLI yes SDK yes: 234
44+
# WRONG_SUMMARY: == Total TLI yes SDK yes: 237
4545
#
4646
## The -COUNT suffix doesn't care if there are too many matches, so check
4747
## the exact count first; the two directives should add up to that.
4848
## Yes, this means additions to TLI will fail this test, but the argument
4949
## to -COUNT can't be an expression.
50-
# AVAIL: TLI knows 479 symbols, 243 available
51-
# AVAIL-COUNT-243: {{^}} available
50+
# AVAIL: TLI knows 479 symbols, 246 available
51+
# AVAIL-COUNT-246: {{^}} available
5252
# AVAIL-NOT: {{^}} available
53-
# UNAVAIL-COUNT-236: not available
53+
# UNAVAIL-COUNT-233: not available
5454
# UNAVAIL-NOT: not available
5555

5656
## This is a large file so it's worth telling lit to stop here.
@@ -347,6 +347,18 @@ DynamicSymbols:
347347
Type: STT_FUNC
348348
Section: .text
349349
Binding: STB_GLOBAL
350+
- Name: erf
351+
Type: STT_FUNC
352+
Section: .text
353+
Binding: STB_GLOBAL
354+
- Name: erff
355+
Type: STT_FUNC
356+
Section: .text
357+
Binding: STB_GLOBAL
358+
- Name: erfl
359+
Type: STT_FUNC
360+
Section: .text
361+
Binding: STB_GLOBAL
350362
- Name: exp
351363
Type: STT_FUNC
352364
Section: .text

0 commit comments

Comments
 (0)