2017-05-30 Jakub Jelinek <jakub@redhat.com>
Backported from mainline
+ 2016-08-15 Martin Liska <mliska@suse.cz>
+ Jakub Jelinek <jakub@redhat.com>
+
+ PR tree-optimization/72824
+ * tree-loop-distribution.c (const_with_all_bytes_same)
+ <case VECTOR_CST>: Fix a typo.
+
2016-08-09 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/72824
2017-05-30 Jakub Jelinek <jakub@redhat.com>
Backported from mainline
+ 2016-08-15 Jakub Jelinek <jakub@redhat.com>
+
+ PR tree-optimization/72824
+ * gcc.c-torture/execute/ieee/pr72824-2.c: New test.
+
2016-08-12 Jakub Jelinek <jakub@redhat.com>
PR c/67410
--- /dev/null
+/* PR tree-optimization/72824 */
+
+typedef float V __attribute__((vector_size (4 * sizeof (float))));
+
+static inline void
+foo (V *x, V value)
+{
+ int i;
+ for (i = 0; i < 32; ++i)
+ x[i] = value;
+}
+
+int
+main ()
+{
+ V x[32];
+ foo (x, (V) { 0.f, -0.f, 0.f, -0.f });
+ if (__builtin_copysignf (1.0, x[3][1]) != -1.0f)
+ __builtin_abort ();
+ return 0;
+}
case VECTOR_CST:
unsigned int j;
for (j = 0; j < VECTOR_CST_NELTS (val); ++j)
- if (const_with_all_bytes_same (VECTOR_CST_ELT (val, i)))
+ if (const_with_all_bytes_same (VECTOR_CST_ELT (val, j)))
break;
if (j == VECTOR_CST_NELTS (val))
return 0;