Debian Codegraph @

gcc/testsuite/gcc.target/powerpc/pr96933-1.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mdejagnu-cpu=power9 -mvsx" } */
3 /* { dg-require-effective-target lp64 } */
4 /* { dg-require-effective-target powerpc_vsx } */
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} } } */