c++: normalizing ttp constraints [PR115656]
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / fold-vec-missing-lhs.c
blob225c4e35d03d1b501206dbee7bd1eebf16d1e373
1 /* This test is meant to verify that the gimple-folding does not
2 occur when the LHS portion of an expression is missing.
3 The intent of this test is to verify that we do not generate an ICE.
4 This was noticed during debug of PR81317. */
6 /* { dg-do compile } */
7 /* { dg-options "-maltivec" } */
8 /* { dg-require-effective-target powerpc_altivec } */
10 #include <altivec.h>
12 vector signed short
13 test1_nolhs (vector bool short x, vector signed short y)
15 vec_add (x, y);
16 return vec_add (x, y);
19 vector signed short
20 test2_nolhs (vector signed short x, vector bool short y)
22 vec_add (x, y);
23 return vec_add (x, y);