| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[libc] Add osutils for Windows and make libc and its tests build on Windows target (#104676) This PR first adds osutils for Windows, and changes some libc code to make libc and its tests build on the Windows target. It then temporarily disables some libc tests that are currently problematic on Windows. Specifically, the changes besides the addition of osutils include: - Macro LIBC_TYPES_HAS_FLOAT16 is disabled on Windows. clang-cl generates calls to functions in compiler-rt to handle float16 arithmetic and these functions are currently not linked in on Windows. - Macro LIBC_TYPES_HAS_INT128 is disabled on Windows. - The invocation to ::aligned_malloc is changed to an invocation to ::_aligned_malloc. - The following unit tests are temporarily disabled because they currently fail on Windows: - test.src.__support.big_int_test - test.src.__support.arg_list_test - test.src.fenv.getenv_and_setenv_test - Tests involving __m128i, __m256i, and __m512i in test.src.string.memory_utils.op_tests.cpp - test_range_errors in libc/test/src/math/smoke/AddTest.h and libc/test/src/math/smoke/SubTest.h | 1 年前 | |
[libc] Make fenv and math tests preserve fenv_t state (#89658) This adds a new test fixture class FEnvSafeTest (usable as a base class for other fixtures) that ensures each test doesn't perturb the fenv_t state that the next test will start with. It also provides types and methods tests can use to explicitly wrap code under test either to check that it doesn't perturb the state or to save and restore the state around particular test code. All the fenv and math tests are updated to use this so that none can affect another. Expectations that code under test and/or tests themselves don't perturb state can be added later. | 2 年前 | |
[libc] Make fenv and math tests preserve fenv_t state (#89658) This adds a new test fixture class FEnvSafeTest (usable as a base class for other fixtures) that ensures each test doesn't perturb the fenv_t state that the next test will start with. It also provides types and methods tests can use to explicitly wrap code under test either to check that it doesn't perturb the state or to save and restore the state around particular test code. All the fenv and math tests are updated to use this so that none can affect another. Expectations that code under test and/or tests themselves don't perturb state can be added later. | 2 年前 | |
[libc] Make fenv and math tests preserve fenv_t state (#89658) This adds a new test fixture class FEnvSafeTest (usable as a base class for other fixtures) that ensures each test doesn't perturb the fenv_t state that the next test will start with. It also provides types and methods tests can use to explicitly wrap code under test either to check that it doesn't perturb the state or to save and restore the state around particular test code. All the fenv and math tests are updated to use this so that none can affect another. Expectations that code under test and/or tests themselves don't perturb state can be added later. | 2 年前 | |
[libc] Make fenv and math tests preserve fenv_t state (#89658) This adds a new test fixture class FEnvSafeTest (usable as a base class for other fixtures) that ensures each test doesn't perturb the fenv_t state that the next test will start with. It also provides types and methods tests can use to explicitly wrap code under test either to check that it doesn't perturb the state or to save and restore the state around particular test code. All the fenv and math tests are updated to use this so that none can affect another. Expectations that code under test and/or tests themselves don't perturb state can be added later. | 2 年前 | |
[libc][NFC] Add stdint.h proxy header to fix dependency issue with <stdint.h> includes. (#150303) https://github.com/llvm/llvm-project/issues/149993 | 1 年前 | |
[libc] Make fenv and math tests preserve fenv_t state (#89658) This adds a new test fixture class FEnvSafeTest (usable as a base class for other fixtures) that ensures each test doesn't perturb the fenv_t state that the next test will start with. It also provides types and methods tests can use to explicitly wrap code under test either to check that it doesn't perturb the state or to save and restore the state around particular test code. All the fenv and math tests are updated to use this so that none can affect another. Expectations that code under test and/or tests themselves don't perturb state can be added later. | 2 年前 | |
[libc] Make fenv and math tests preserve fenv_t state (#89658) This adds a new test fixture class FEnvSafeTest (usable as a base class for other fixtures) that ensures each test doesn't perturb the fenv_t state that the next test will start with. It also provides types and methods tests can use to explicitly wrap code under test either to check that it doesn't perturb the state or to save and restore the state around particular test code. All the fenv and math tests are updated to use this so that none can affect another. Expectations that code under test and/or tests themselves don't perturb state can be added later. | 2 年前 | |
[libc] Make fenv and math tests preserve fenv_t state (#89658) This adds a new test fixture class FEnvSafeTest (usable as a base class for other fixtures) that ensures each test doesn't perturb the fenv_t state that the next test will start with. It also provides types and methods tests can use to explicitly wrap code under test either to check that it doesn't perturb the state or to save and restore the state around particular test code. All the fenv and math tests are updated to use this so that none can affect another. Expectations that code under test and/or tests themselves don't perturb state can be added later. | 2 年前 | |
[libc] Add osutils for Windows and make libc and its tests build on Windows target (#104676) This PR first adds osutils for Windows, and changes some libc code to make libc and its tests build on the Windows target. It then temporarily disables some libc tests that are currently problematic on Windows. Specifically, the changes besides the addition of osutils include: - Macro LIBC_TYPES_HAS_FLOAT16 is disabled on Windows. clang-cl generates calls to functions in compiler-rt to handle float16 arithmetic and these functions are currently not linked in on Windows. - Macro LIBC_TYPES_HAS_INT128 is disabled on Windows. - The invocation to ::aligned_malloc is changed to an invocation to ::_aligned_malloc. - The following unit tests are temporarily disabled because they currently fail on Windows: - test.src.__support.big_int_test - test.src.__support.arg_list_test - test.src.fenv.getenv_and_setenv_test - Tests involving __m128i, __m256i, and __m512i in test.src.string.memory_utils.op_tests.cpp - test_range_errors in libc/test/src/math/smoke/AddTest.h and libc/test/src/math/smoke/SubTest.h | 1 年前 | |
[libc] Make fenv and math tests preserve fenv_t state (#89658) This adds a new test fixture class FEnvSafeTest (usable as a base class for other fixtures) that ensures each test doesn't perturb the fenv_t state that the next test will start with. It also provides types and methods tests can use to explicitly wrap code under test either to check that it doesn't perturb the state or to save and restore the state around particular test code. All the fenv and math tests are updated to use this so that none can affect another. Expectations that code under test and/or tests themselves don't perturb state can be added later. | 2 年前 |