blob: c60920a88477dec6fb5b8c240c1ae5b30fa7b31c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
/* { dg-do compile } */
/* { dg-options "-march=rv32gcv -mabi=ilp32d -O3" } */
#include "riscv_vector.h"
/* This testcase is testing whether RISC-V define REGMODE_NATURAL_SIZE. */
void foo (int8_t *in, int8_t *out)
{
vint8mf2_t v = *(vint8mf2_t*)in;
vint32mf2_t v2 = *(vint32mf2_t*)in;
*(vint8mf2_t*)out = v;
*(vint32mf2_t*)(out + 16) = v2;
}
|