1 /* { dg-require-effective-target vect_int } */
13 data in1
[N
], in2
[N
], out
[N
];
14 short result
[N
*2] = {7,-7,9,-6,11,-5,13,-4,15,-3,17,-2,19,-1,21,0,23,1,25,2,27,3,29,4,31,5,33,6,35,7,37,8,39,9,41,10,43,11,45,12,47,13,49,14,51,15,53,16,55,17,57,18,59,19,61,20,63,21,65,22,67,23,69,24,71,25,73,26,75,27,77,28,79,29,81,30,83,31,85,32,87,33,89,34,91,35,93,36,95,37,97,38,99,39,101,40,103,41,105,42};
15 short out1
[N
], out2
[N
];
17 __attribute__ ((noinline
)) void
23 /* Vectorizable with conditional store sinking. */
24 for (i
= 0; i
< N
; i
++)
41 /* Only vectorizable with masked stores. */
42 for (i
= 0; i
< N
; i
++)
65 for (i
= 0; i
< N
; i
++)
71 __asm__
volatile ("");
77 for (i
= 0; i
< N
; i
++)
79 if (out
[i
].a
!= result
[2*i
] || out
[i
].b
!= result
[2*i
+1])
86 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target { ! vect_masked_store } xfail { { vect_no_align && { ! vect_hw_misalign } } || { ! vect_strided2 } } } } } */
87 /* { dg-final { scan-tree-dump-times "vectorized 2 loops" 1 "vect" { target { vect_masked_store } } } } */