[RFA] Fix csky and c6x build failures
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / ssa-fre-6.c
blob041d921916cf78fde8d21e4527f012b0e7517674
1 /* { dg-do compile } */
2 /* { dg-require-effective-target int32 } */
3 /* { dg-skip-if "" { *-*-* } { "-O0" } { "" } } */
4 /* { dg-additional-options "-fgimple -fdump-tree-fre1" } */
6 typedef int v4si __attribute__((vector_size(16)));
8 int __GIMPLE (ssa,startwith("fre"))
9 foo ()
11 int * p;
12 int i;
13 int x[4];
14 __SIZETYPE__ _1;
15 __SIZETYPE__ _2;
16 int _7;
18 __BB(2):
19 i_3 = 0;
20 _1 = (__SIZETYPE__) i_3;
21 _2 = _1 * _Literal (__SIZETYPE__) 4;
22 p_4 = _Literal (int *) &x + _2;
23 __MEM <v4si> ((v4si *)p_4) = _Literal (v4si) {};
24 _7 = x[0];
25 return _7;
28 /* { dg-final { scan-tree-dump "return 0;" "fre1" } } */