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