Get TEST_LIBC_CALLS passing on AARCH64

This commit is contained in:
Justine Tunney 2023-05-13 02:41:41 -07:00
parent 802e7eb4ef
commit ba49e86e20
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
22 changed files with 65 additions and 7 deletions

View file

@ -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) {

View file

@ -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;

View file

@ -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) {