1  /* { dg-do compile } */
       2  /* { dg-require-effective-target powerpc_p8vector_ok } */
       3  /* { dg-options "-O2 -mdejagnu-cpu=power8" } */
       4  
       5  /* Test vector constructions with char/short type values whether use direct
       6     move instructions like mtvsrd/mtvsrwz on Power8, rather than transfering
       7     with memory store/load with stb/sth and vector load.  */
       8  
       9  #include "pr96933.h"
      10  
      11  /* { dg-final { scan-assembler-times {\mmtvsrd\M} 48 {target lp64 } } } */
      12  /* { dg-final { scan-assembler-times {\mmtvsrwz\M} 48 {target {! lp64 } } } } */
      13  /* { dg-final { scan-assembler-times {\mxxpermdi\M} 4 } } */
      14  /* { dg-final { scan-assembler-not {\mstb\M} } } */
      15  /* { dg-final { scan-assembler-not {\msth\M} } } */
      16  /* { dg-final { scan-assembler-not {\mrlwinm\M} } } */