blob: 1040db7b984be28461eed73f26d6a3a1fe5a7ddd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/* Verify that overloaded built-ins for vec_neg with short
inputs produce the right code. */
/* { dg-do compile } */
/* { dg-options "-mvsx -O2 -mdejagnu-cpu=power8" } */
/* { dg-require-effective-target powerpc_vsx } */
#include <altivec.h>
vector signed short
test3 (vector signed short x)
{
return vec_neg (x);
}
/* { dg-final { scan-assembler-times "xxspltib|vspltisw|vxor" 1 } } */
/* { dg-final { scan-assembler-times "vsubuhm" 1 } } */
/* { dg-final { scan-assembler-times "vmaxsh" 0 } } */
|