Test "Scalable Vector Extension (SVE) support." on arm64

Change-Id: I3abaca932985a06b06887b962e769f2eac96c738
This commit is contained in:
Shiratori, Takehiro
2019-02-20 20:57:26 +09:00
committed by Masamichi Takagi
parent 6810506c3d
commit 7da5fede8b
57 changed files with 6921 additions and 0 deletions

29
test/sve/src/001.c Normal file
View File

@@ -0,0 +1,29 @@
/* 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;
}