blob: 3ad81980e8f8e6fe4fda78750b8a006a5ec8f016 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-require-effective-target powerpc_p9vector_ok } */
/* { dg-options "-mdejagnu-cpu=power9 -O2" } */
void sc (signed char *p, double x) { *p = x; }
void uc (unsigned char *p, double x) { *p = x; }
void ss (signed short *p, double x) { *p = x; }
void us (unsigned short *p, double x) { *p = x; }
/* { dg-final { scan-assembler "stxsibx" } } */
/* { dg-final { scan-assembler "stxsihx" } } */
/* { dg-final { scan-assembler-not "mfvsrd" } } */
/* { dg-final { scan-assembler-not "mfvsrwz" } } */
/* { dg-final { scan-assembler-not "mtvsrd" } } */
/* { dg-final { scan-assembler-not "mtvsrwa" } } */
/* { dg-final { scan-assembler-not "mtvsrwz" } } */