blob: 46b1be1f5c428df21d38b4dfe08437fb59b0f00e [file] [log] [blame]
/* Verify that overloaded built-ins for vec_cmp with short
inputs produce the right code. */
/* { dg-do compile } */
/* { dg-require-effective-target powerpc_p9vector_ok } */
/* { dg-options "-mpower9-vector -mdejagnu-cpu=power9 -O2" } */
#include "fold-vec-cmp-short.h"
/* { dg-final { scan-assembler-times "vcmpequh" 2 } } */
/* { dg-final { scan-assembler-times "vcmpneh" 2 } } */
/* { dg-final { scan-assembler-times "vcmpgtsh" 4 } } */
/* { dg-final { scan-assembler-times "vcmpgtuh" 4 } } */
/* { dg-final { scan-assembler-times "xxlnor" 4 } } */