1  /* { dg-do compile } */
       2  /* { dg-require-effective-target lp64 } */
       3  /* { dg-require-effective-target powerpc_p9vector_ok } */
       4  /* { dg-options "-O2 -mdejagnu-cpu=power9" } */
       5  
       6  /* Test vector constructions with char/short type values whether use 128bit
       7     direct move instructions mtvsrdd on Power9 or later, rather than transfering
       8     with memory store/load with stb/sth and vector load.  */
       9  
      10  #include "pr96933.h"
      11  
      12  /* { dg-final { scan-assembler-times {\mmtvsrdd\M} 24 } } */
      13  /* { dg-final { scan-assembler-times {\mvpkudum\M} 12 } } */
      14  /* { dg-final { scan-assembler-not {\mstb\M} } } */
      15  /* { dg-final { scan-assembler-not {\msth\M} } } */
      16  /* { dg-final { scan-assembler-not {\mrlwinm\M} } } */