blob: 9f5b4bd939a69e8be2c73246d44770c8ea56c002 [file] [log] [blame]
/* Verify that overloaded built-ins for vec_cmp with int
inputs produce the right code. */
/* { dg-do compile } */
/* { dg-require-effective-target powerpc_vsx_ok } */
/* { dg-options "-mvsx -O2" } */
/* { dg-additional-options "-mdejagnu-cpu=power9" { target { ! has_arch_pwr9 } } } */
#include "fold-vec-cmp-int.h"
/* { dg-final { scan-assembler-times "vcmpequw" 2 } } */
/* { dg-final { scan-assembler-times "vcmpnew" 2 } } */
/* { dg-final { scan-assembler-times "vcmpgtsw" 4 } } */
/* { dg-final { scan-assembler-times "vcmpgtuw" 4 } } */
/* { dg-final { scan-assembler-times "xxlnor" 4 } } */