Files
mckernel/test/sve/src/001.c
Shiratori, Takehiro 7da5fede8b Test "Scalable Vector Extension (SVE) support." on arm64
Change-Id: I3abaca932985a06b06887b962e769f2eac96c738
2019-02-27 06:26:00 +00:00

30 lines
606 B
C

/* 001.c COPYRIGHT FUJITSU LIMITED 2016-2019 */
/* Process starts immediately after registers check. */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "common.h"
TEST_FUNC(TEST_NUMBER, unused1, vq, unused2, unused3)
{
int ret = 0;
struct fpsimd_sve_state(vq) exp_buf;
struct fpsimd_sve_state(vq) rd_buf;
unsigned int fpscr[2] = { 0, 0 };
print_test_overview(tp_num);
read_sve(&rd_buf, vq, fpscr);
memset(&exp_buf, 0, sizeof(exp_buf));
if (sve_compare(&exp_buf, &rd_buf, vq)) {
printf("RESULT: NG.\n");
ret = -1;
}
else {
printf("RESULT: OK.\n");
}
return ret;
}