1 /* PR tree-optimization/93820 */ 2 /* { dg-do run } */ 3 /* { dg-options "-O2 -fgimple" } */ 4 5 typedef int v4si __attribute__((vector_size(4 * sizeof (int)))); 6 int a[10]; 7 8 void __GIMPLE (ssa,startwith("store-merging")) foo(int * p)9foo (int *p) 10 { 11 int _2; 12 __BB(2): 13 _2 = *p_1(D); 14 a[6] = _2; 15 a[4] = 1; 16 __MEM <v4si> ((int *)&a + _Literal (int *) 16) = _Literal (v4si) { 0, 0, 0, 0 }; 17 a[3] = 0; 18 return; 19 } 20 21 int main()22main () 23 { 24 int i = 0; 25 foo (&i); 26 for (i = 0; i < 10; i++) 27 if (a[i]) 28 __builtin_abort (); 29 return 0; 30 } 31