| 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 "-mdejagnu-cpu=power8 -mvsx -O2" } */ |
| 6 |
/* { dg-require-effective-target powerpc_vsx } */ |
| 7 |
|
| 8 |
#include "fold-vec-cmp-int.h" |
| 9 |
|
| 10 |
/* { dg-final { scan-assembler-times "vcmpequw" 4 } } */ |
| 11 |
/* { dg-final { scan-assembler-times "vcmpgtsw" 4 } } */ |
| 12 |
/* { dg-final { scan-assembler-times "vcmpgtuw" 4 } } */ |
| 13 |
/* { dg-final { scan-assembler-times "xxlnor" 6 } } */ |