aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/pr96933-1.c
blob: d95fd4819f8929b15ab5a01e16bca6cb8dd9aabc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile } */
/* { dg-options "-O2 -mdejagnu-cpu=power9 -mvsx" } */
/* { dg-require-effective-target lp64 } */
/* { dg-require-effective-target powerpc_vsx } */

/* Test vector constructions with char/short type values whether use 128bit
   direct move instructions mtvsrdd on Power9 or later, rather than transfering
   with memory store/load with stb/sth and vector load.  */

#include "pr96933.h"

/* { dg-final { scan-assembler-times {\mmtvsrdd\M} 24 } } */
/* { dg-final { scan-assembler-times {\mvpkudum\M} 12 } } */
/* { dg-final { scan-assembler-not {\mstb\M} } } */
/* { dg-final { scan-assembler-not {\msth\M} } } */
/* { dg-final { scan-assembler-not {\mrlwinm\M} } } */