Initial import of libdpf.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Ryan Henry 2026-09-24 14:08:32 -06:00
commit e4e666f459
4563 changed files with 1690372 additions and 0 deletions

7713
thirdparty/simde/test/arm/sve/add.c vendored Normal file

File diff suppressed because it is too large Load diff

3874
thirdparty/simde/test/arm/sve/and.c vendored Normal file

File diff suppressed because it is too large Load diff

2108
thirdparty/simde/test/arm/sve/cmplt.c vendored Normal file

File diff suppressed because it is too large Load diff

4380
thirdparty/simde/test/arm/sve/dup.c vendored Normal file

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,30 @@
simde_test_arm_sve_sources = []
foreach name : simde_sve_families
if (name != 'cnt') and (name != 'ld1') and (name != 'st1') and (name != 'ptest') and (name != 'ptrue') and (name != 'whilelt') and (name != 'reinterpret')
foreach lang : ['c', 'cpp']
source_file = name + '.c'
if lang == 'cpp'
source_file = configure_file(input: name + '.c', output: name + '.cpp', copy: true)
endif
simde_test_arm_sve_sources += source_file
foreach emul : ['emul', 'native']
extra_flags = ['-DSIMDE_TEST_BARE']
if emul == 'emul'
extra_flags += '-DSIMDE_NO_NATIVE'
endif
x = executable(name + '-' + emul + '-' + lang, source_file,
c_args: simde_c_args + simde_c_defs + simde_native_c_flags + extra_flags,
cpp_args: simde_c_args + simde_c_defs + simde_native_c_flags + extra_flags,
include_directories: simde_include_dir,
dependencies: simde_deps)
test('arm/sve/' + name + '/' + emul + '/' + lang, x,
protocol: 'tap',
# Emscripten tests must be run from builddir
workdir: meson.current_build_dir())
endforeach
endforeach
endif
endforeach

2977
thirdparty/simde/test/arm/sve/qadd.c vendored Normal file

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,3 @@
#include "../../munit/munit.h"
MunitSuite* simde_tests_arm_sve_get_suite(void);

View file

@ -0,0 +1,30 @@
#include "test-sve.h"
#include "run-tests.h"
static MunitSuite suites[] = {
#define SIMDE_TEST_DECLARE_SUITE(name) \
{ NULL, NULL, NULL, 1, MUNIT_SUITE_OPTION_NONE }, \
{ NULL, NULL, NULL, 1, MUNIT_SUITE_OPTION_NONE }, \
{ NULL, NULL, NULL, 1, MUNIT_SUITE_OPTION_NONE }, \
{ NULL, NULL, NULL, 1, MUNIT_SUITE_OPTION_NONE },
#include <test/arm/sve/declare-suites.h>
#undef SIMDE_TEST_DECLARE_SUITE
{ NULL, NULL, NULL, 0, MUNIT_SUITE_OPTION_NONE }
};
static MunitSuite suite = { "/sve", NULL, suites, 1, MUNIT_SUITE_OPTION_NONE };
MunitSuite*
simde_tests_arm_sve_get_suite(void) {
int i = 0;
#define SIMDE_TEST_DECLARE_SUITE(name) \
suites[i++] = *HEDLEY_CONCAT3(simde_test_arm_sve_get_suite_, name, _native_c)(); \
suites[i++] = *HEDLEY_CONCAT3(simde_test_arm_sve_get_suite_, name, _native_cpp)(); \
suites[i++] = *HEDLEY_CONCAT3(simde_test_arm_sve_get_suite_, name, _emul_c)(); \
suites[i++] = *HEDLEY_CONCAT3(simde_test_arm_sve_get_suite_, name, _emul_cpp)();
#include <test/arm/sve/declare-suites.h>
#undef SIMDE_TEST_DECLARE_SUITE
return &suite;
}

View file

@ -0,0 +1,8 @@
#if defined(SIMDE_TESTS_ARM_SVE_RUN_TESTS_H)
#error File already included.
#endif
#define SIMDE_TESTS_ARM_SVE_RUN_TESTS_H
#include "../../munit/munit.h"
MunitSuite* simde_tests_arm_sve_get_suite(void);

4581
thirdparty/simde/test/arm/sve/sel.c vendored Normal file

File diff suppressed because it is too large Load diff

9408
thirdparty/simde/test/arm/sve/sub.c vendored Normal file

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,29 @@
#if defined(SIMDE_TEST_BARE)
int main(void) {
int retval = EXIT_SUCCESS;
fprintf(stdout, "1..%zu\n", (sizeof(test_suite_tests) / sizeof(test_suite_tests[0])));
for (size_t i = 0 ; i < (sizeof(test_suite_tests) / sizeof(test_suite_tests[0])) ; i++) {
int res = test_suite_tests[i].func();
if (res != 0) {
retval = EXIT_FAILURE;
fprintf(stdout, "not ok %zu " HEDLEY_STRINGIFY(SIMDE_TEST_ARM_SVE_INSN) "/%s\n", i + 1, test_suite_tests[i].name);
} else {
fprintf(stdout, "ok %zu " HEDLEY_STRINGIFY(SIMDE_TEST_ARM_SVE_INSN) "/%s\n", i + 1, test_suite_tests[i].name);
}
}
return retval;
}
#else
#if defined(__cplusplus)
static MunitSuite suite = { const_cast<char*>("/" HEDLEY_STRINGIFY(SIMDE_TEST_ARM_SVE_INSN)), test_suite_tests, NULL, 1, MUNIT_SUITE_OPTION_NONE };
#else
static MunitSuite suite = { (char*) "/" HEDLEY_STRINGIFY(SIMDE_TEST_ARM_SVE_INSN), test_suite_tests, NULL, 1, MUNIT_SUITE_OPTION_NONE };
#endif
HEDLEY_C_DECL MunitSuite*
SIMDE_TEST_GENERATE_VARIANT_SYMBOL_CURRENT(HEDLEY_CONCAT(simde_test_arm_sve_get_suite_,SIMDE_TEST_ARM_SVE_INSN)) (void) {
return &suite;
}
#endif

View file

@ -0,0 +1,19 @@
#if !defined(SIMDE_TEST_ARM_SVE_TEST_SVE_H)
#define SIMDE_TEST_ARM_SVE_TEST_SVE_H
#include "../../test.h"
static int32_t
simde_test_arm_sve_random_length(size_t buf_size, size_t elem_size) {
return
(simde_test_codegen_random_i32() & HEDLEY_STATIC_CAST(int32_t, (buf_size / elem_size) - 1)) |
HEDLEY_STATIC_CAST(int32_t, (buf_size / 2) / elem_size);
}
#if !defined(SIMDE_TEST_BARE)
#define SIMDE_TEST_DECLARE_SUITE(name) SIMDE_TEST_SUITE_DECLARE_GETTERS(HEDLEY_CONCAT(simde_test_arm_sve_get_suite_,name))
#include <test/arm/sve/declare-suites.h>
#undef SIMDE_TEST_DECLARE_SUITE
#endif
#endif /* !defined(SIMDE_TEST_ARM_SVE_TEST_SVE_H) */