void test_vst1s8 (void) { int8_t *arg0_int8_t; int8x8_t arg1_int8x8_t; vst1_s8 (arg0_int8_t, arg1_int8x8_t); }
test_vdup_lane_s8 () { int8x8_t a; int8x8_t b; int i; /* Only two first cases are interesting. */ int8_t c[8] = { 0, 1, 2, 3, 4, 5, 6, 7 }; int8_t d[8]; a = vld1_s8 (c); b = wrap_vdup_lane_s8_0 (a); vst1_s8 (d, b); for (i = 0; i < 8; i++) if (c[0] != d[i]) return 1; b = wrap_vdup_lane_s8_1 (a); vst1_s8 (d, b); for (i = 0; i < 8; i++) if (c[1] != d[i]) return 1; return 0; }
test_vld1_vst1 () { int8x8_t a; int8x8_t b; int i = 0; int8_t c[8] = { 0, 1, 2, 3, 4, 5, 6, 7 }; int8_t d[8]; a = vld1_s8 (c); asm volatile ("":::"memory"); vst1_s8 (d, a); asm volatile ("":::"memory"); for (; i < 8; i++) if (c[i] != d[i]) return 1; return 0; }
test_vreinterpret_s8_f64 () { float64x1_t a; int8x8_t b; float64_t c[1] = { PI_F64 }; int8_t d[8] = { 0x18, 0x2D, 0x44, 0x54, 0xFB, 0x21, 0x09, 0x40 }; int8_t e[8]; int i; a = vld1_f64 (c); b = wrap_vreinterpret_s8_f64 (a); vst1_s8 (e, b); for (i = 0; i < 8; i++) if (d[i] != e[i]) return 1; return 0; };
inline void vst1(s8 * ptr, const int8x8_t & v) { return vst1_s8(ptr, v); }