c++: normalizing ttp constraints [PR115656]
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr70010.c
blob679034fae43f994ab72d3816ea3c1e191632079b
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -finline-functions -Wno-psabi -mvsx" } */
3 /* { dg-final { scan-assembler {\mbl \.?vadd_no_vsx\M} } } */
5 typedef int vec_t __attribute__((vector_size(16)));
7 static vec_t
8 __attribute__((__target__("no-vsx")))
9 vadd_no_vsx (vec_t a, vec_t b)
11 return a + b;
14 vec_t
15 __attribute__((__target__("vsx")))
16 call_vadd_no_vsx (vec_t x, vec_t y, vec_t z)
18 return vadd_no_vsx (x, y) - z;