1
2// Set up the 128-bit shadow memory test, by defining the
3// required vector-copy function, and then including the
4// template.
5
6#define VECTOR_BYTES 16
7
8static __attribute__((noinline))
9void vector_copy ( void* dst, void* src )
10{
11  __asm__ __volatile__(
12     "movups (%1), %%xmm7 ; movups %%xmm7, (%0)"
13     : /*OUT*/ : /*IN*/ "r"(dst), "r"(src) : "memory","xmm7"
14  );
15}
16
17// Include the test body, which refers to the above function
18#include "../common/sh-mem-vec128.tmpl.c"
19