Debian Codegraph @

gcc/testsuite/gcc.target/powerpc/fold-vec-cmp-int.p9.c

raw
1 /* Verify that overloaded built-ins for vec_cmp with int
2 inputs produce the right code. */
3
4 /* { dg-do compile } */
5 /* { dg-options "-mvsx -O2" } */
6 /* { dg-additional-options "-mdejagnu-cpu=power9" { target { ! has_arch_pwr9 } } } */
7 /* { dg-require-effective-target powerpc_vsx } */
8
9 #include "fold-vec-cmp-int.h"
10
11 /* { dg-final { scan-assembler-times "vcmpequw" 2 } } */
12 /* { dg-final { scan-assembler-times "vcmpnew" 2 } } */
13 /* { dg-final { scan-assembler-times "vcmpgtsw" 4 } } */
14 /* { dg-final { scan-assembler-times "vcmpgtuw" 4 } } */
15 /* { dg-final { scan-assembler-times "xxlnor" 4 } } */