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