Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/pr93820-2.c @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
145:1830386684a0 | 152:2b5abeee2509 |
---|---|
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")) | |
9 foo (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 | |
22 main () | |
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 } |