[libc] Enable conversion functions on the GPU

These functions were previously removed due to problems running the
tests with `errno` in them. This was resolved previously by making the
internal implementation of these functions use a global `errno` so that
tests can still use `errno` functionality as long as they are run with a
single thread. This allows us to re-enable these tests as a previous
patch has also resolved the issue where the `stdlib` tests could not be
hermetic due to the dependence on system rounding functions.

Reviewed By: lntue

Differential Revision: https://reviews.llvm.org/D153016
This commit is contained in:
Joseph Huber 2023-06-15 08:18:11 -05:00
parent ed578f02cf
commit fd14f7adbe
2 changed files with 22 additions and 11 deletions

View File

@ -56,8 +56,19 @@ set(TARGET_LIBC_ENTRYPOINTS
# stdlib.h entrypoints
libc.src.stdlib.abs
libc.src.stdlib.atoi
libc.src.stdlib.atof
libc.src.stdlib.atol
libc.src.stdlib.atoll
libc.src.stdlib.labs
libc.src.stdlib.llabs
libc.src.stdlib.strtod
libc.src.stdlib.strtof
libc.src.stdlib.strtol
libc.src.stdlib.strtold
libc.src.stdlib.strtoll
libc.src.stdlib.strtoul
libc.src.stdlib.strtoull
# stdlib.h entrypoints
libc.src.stdlib._Exit

View File

@ -85,19 +85,19 @@ stdlib.h
Function Name Available RPC Required
============= ========= ============
abs |check|
atoi
atof
atol
atoll
atoi |check|
atof |check|
atol |check|
atoll |check|
labs |check|
llabs |check|
strtod
strtof
strtol
strtold
strtoll
strtoul
strtoull
strtod |check|
strtof |check|
strtol |check|
strtold |check|
strtoll |check|
strtoul |check|
strtoull |check|
============= ========= ============
stdio.h