mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-08 04:08:32 +00:00
Get TEST_LIBC_CALLS passing on AARCH64
This commit is contained in:
parent
802e7eb4ef
commit
ba49e86e20
22 changed files with 65 additions and 7 deletions
|
@ -132,7 +132,9 @@ dontinline void RngSet(void *mem, size_t size) {
|
|||
}
|
||||
|
||||
FIXTURE(intrin, disableHardwareExtensions) {
|
||||
#ifdef __x86_64__
|
||||
memset((/*unconst*/ void *)kCpuids, 0, sizeof(kCpuids));
|
||||
#endif
|
||||
}
|
||||
|
||||
TEST(punpcklwd, test) {
|
||||
|
|
|
@ -221,6 +221,7 @@ TEST(ksnprintf, testSymbols) {
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef __x86_64__
|
||||
TEST(ksnprintf, fuzzTheUnbreakable) {
|
||||
int e;
|
||||
size_t i;
|
||||
|
@ -242,6 +243,7 @@ TEST(ksnprintf, fuzzTheUnbreakable) {
|
|||
}
|
||||
EXPECT_SYS(0, 0, mprotect(f, FRAMESIZE, PROT_READ));
|
||||
}
|
||||
#endif /* __x86_64__ */
|
||||
|
||||
TEST(kprintf, testFailure_wontClobberErrnoAndBypassesSystemCallSupport) {
|
||||
int n;
|
||||
|
|
|
@ -16,8 +16,8 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "dsp/core/q.h"
|
||||
#include "libc/intrin/pmulhrsw.h"
|
||||
#include "dsp/core/q.h"
|
||||
#include "libc/log/check.h"
|
||||
#include "libc/macros.internal.h"
|
||||
#include "libc/str/str.h"
|
||||
|
@ -39,7 +39,9 @@
|
|||
}
|
||||
|
||||
FIXTURE(pmulhrsw, disableHardwareExtensions) {
|
||||
#ifdef __x86_64__
|
||||
memset((/*unconst*/ void *)kCpuids, 0, sizeof(kCpuids));
|
||||
#endif
|
||||
}
|
||||
|
||||
TEST(pmulhrsw, testLimits) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue