Test "Scalable Vector Extension (SVE) support." on arm64
Change-Id: I3abaca932985a06b06887b962e769f2eac96c738
This commit is contained in:
committed by
Masamichi Takagi
parent
6810506c3d
commit
7da5fede8b
25
test/sve/src/040.c
Normal file
25
test/sve/src/040.c
Normal file
@@ -0,0 +1,25 @@
|
||||
/* 040.c COPYRIGHT FUJITSU LIMITED 2019 */
|
||||
/* coredump SVE register output check. */
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "common.h"
|
||||
|
||||
TEST_FUNC(TEST_NUMBER, unused1, vq, unused2, unused3)
|
||||
{
|
||||
struct fpsimd_sve_state(vq) wr_buf;
|
||||
unsigned int fpscr[2] = { 0, 0 };
|
||||
unsigned int *null_p = NULL;
|
||||
|
||||
print_test_overview(tp_num);
|
||||
|
||||
memset(&wr_buf, 0, sizeof(wr_buf));
|
||||
|
||||
gen_test_sve(&wr_buf, vq);
|
||||
write_sve(&wr_buf, vq, fpscr);
|
||||
|
||||
/* gen Segmentation fault. */
|
||||
*null_p = 1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user