[libc-commits] [libc] [libc] [search] implement hcreate(_r)/hsearch(_r)/hdestroy(_r) (PR #73469)
via libc-commits
libc-commits at lists.llvm.org
Tue Nov 28 09:38:02 PST 2023
================
@@ -30,7 +29,7 @@ if (CPU_SUPPORTS_SSE2)
group_test.cpp
----------------
lntue wrote:
With the `FLAGS` option setup, you only need to create 1 test, without checking for `CPU_SUPPORT_SSE2`:
```
add_libc_test(
group_test
UNIT_TEST_ONLY
SUITE
libc-support-tests
SRCS
group_test.cpp
DEPENDS
libc.src.__support.HashTable.bitmask
libc.src.stdlib.rand
libc.src.string.memcmp
DEPENDS
libc.src.__support.HashTable.bitmask
libc.src.stdlib.rand
libc.src.string.memcmp
)
```
Then you after `cmake` command, you can check if the following targets are available for `ninja`:
```
libc.test.src.__support.HashTable.group_test.__unit__
libc.test.src.__support.HashTable.group_test.__unit__.__NO_DISABLE_SSE2_OPT
```
And check if the generated codes in `build/projects/libc/test/src/__support/HashTable/` match your expectation.
Thanks,
https://github.com/llvm/llvm-project/pull/73469
More information about the libc-commits
mailing list