diff options
author | Michael Jones <michaelrj@google.com> | 2022-01-12 13:44:10 -0800 |
---|---|---|
committer | Michael Jones <michaelrj@google.com> | 2022-01-12 14:24:18 -0800 |
commit | ba6a3972d74c0a7fbdece83378f9834d56106d94 (patch) | |
tree | a98ff97ef8da232800ba0be2dc7a02129dc320ad /libc | |
parent | [tosa][mlir] Support dynamic batch dimension for ops where the batch dim is e... (diff) | |
download | llvm-project-ba6a3972d74c0a7fbdece83378f9834d56106d94.tar.gz llvm-project-ba6a3972d74c0a7fbdece83378f9834d56106d94.tar.bz2 llvm-project-ba6a3972d74c0a7fbdece83378f9834d56106d94.zip |
[libc] add working ARM entrypoints
Some functions were added to x86_64 that were untested on Aarch64. Now
that I've had an opportunity to test them, they all work on Aarch64 with
the minor formatting change included.
Reviewed By: sivachandra
Differential Revision: https://reviews.llvm.org/D117146
Diffstat (limited to 'libc')
-rw-r--r-- | libc/config/linux/aarch64/entrypoints.txt | 13 | ||||
-rw-r--r-- | libc/test/src/stdlib/strtold_test.cpp | 4 |
2 files changed, 13 insertions, 4 deletions
diff --git a/libc/config/linux/aarch64/entrypoints.txt b/libc/config/linux/aarch64/entrypoints.txt index 7b9027efa336..4a3e287f14d3 100644 --- a/libc/config/linux/aarch64/entrypoints.txt +++ b/libc/config/linux/aarch64/entrypoints.txt @@ -23,18 +23,23 @@ set(TARGET_LIBC_ENTRYPOINTS # string.h entrypoints libc.src.string.bcmp libc.src.string.bzero + libc.src.string.memccpy libc.src.string.memchr libc.src.string.memcmp libc.src.string.memcpy libc.src.string.memmove - libc.src.string.memset + libc.src.string.mempcpy libc.src.string.memrchr + libc.src.string.memset + libc.src.string.stpcpy + libc.src.string.stpncpy libc.src.string.strcat libc.src.string.strchr - libc.src.string.strcpy libc.src.string.strcmp + libc.src.string.strcpy libc.src.string.strcspn libc.src.string.strlen + libc.src.string.strncat libc.src.string.strncmp libc.src.string.strncpy libc.src.string.strnlen @@ -53,6 +58,7 @@ 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.bsearch @@ -62,7 +68,10 @@ set(TARGET_LIBC_ENTRYPOINTS libc.src.stdlib.llabs libc.src.stdlib.lldiv libc.src.stdlib.qsort + 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 diff --git a/libc/test/src/stdlib/strtold_test.cpp b/libc/test/src/stdlib/strtold_test.cpp index 0aa8f45e623d..c5835f9cd1db 100644 --- a/libc/test/src/stdlib/strtold_test.cpp +++ b/libc/test/src/stdlib/strtold_test.cpp @@ -64,7 +64,7 @@ public: char *str_end = nullptr; #if defined(LONG_DOUBLE_IS_DOUBLE) - __llvm_libc::fputil::FPBits<long double> expectedFP = + __llvm_libc::fputil::FPBits<long double> expected_fp = __llvm_libc::fputil::FPBits<long double>(expectedRawData64); const int expectedErrno = expectedErrno64; #elif defined(SPECIAL_X86_LONG_DOUBLE) @@ -72,7 +72,7 @@ public: __llvm_libc::fputil::FPBits<long double>(expectedRawData80); const int expected_errno = expectedErrno80; #else - __llvm_libc::fputil::FPBits<long double> expectedFP = + __llvm_libc::fputil::FPBits<long double> expected_fp = __llvm_libc::fputil::FPBits<long double>(expectedRawData128); const int expectedErrno = expectedErrno128; #endif |