2013-05-24 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr17055-1.c
blobd550076d6bdc7b384f8aeba3d2ac8195f6ddb15a
1 /* PR middle-end/17055. */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -ffast-math" } */
4 /* { dg-additional-options "-fno-common" { target hppa*-*-hpux* } } */
6 /* This test used to abort, beacuse we do an "integer" fold to zero, i.e.
7 x - x = (T)0 where T is the type of x. Unfortunately, fold_convert
8 was unable to convert integer_zero_node to the appropriate vector type. */
10 typedef float v4sf __attribute__((vector_size(16)));
11 typedef int v4si __attribute__((vector_size(16)));
13 v4sf ivf, ovf;
14 v4si ivi, ovi;
16 void testf (void)
18 ovf = ivf - ivf;
21 void testi (void)
23 ovi = ivi - ivi;