| 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. */ |
| 5 |
|
| 6 |
/* { dg-do compile } */ |
| 7 |
/* { dg-options "-maltivec" } */ |
| 8 |
/* { dg-require-effective-target powerpc_altivec } */ |
| 9 |
|
| 10 |
#include <altivec.h> |
| 11 |
|
| 12 |
vector signed short |
| 13 |
test1_nolhs (vector bool short x, vector signed short y) |
| 14 |
{ |
| 15 |
vec_add (x, y); |
| 16 |
return vec_add (x, y); |
| 17 |
} |
| 18 |
|
| 19 |
vector signed short |
| 20 |
test2_nolhs (vector signed short x, vector bool short y) |
| 21 |
{ |
| 22 |
vec_add (x, y); |
| 23 |
return vec_add (x, y); |
| 24 |
} |