1 /* { dg-require-effective-target vect_int } */
8 __attribute__ ((noinline
)) int main1 (short X
)
16 /* vectorization of induction with type conversions. */
17 for (i
= 0; i
< N
; i
++)
19 a
[i
] = (unsigned char)X
;
21 c
[i
] = (unsigned int)X
;
26 for (i
= 0; i
< N
; i
++)
28 if (a
[i
] != (unsigned char)myX
|| b
[i
] != myX
|| c
[i
] != (unsigned int)myX
++)
42 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { xfail *-*-* } } } */
43 /* Fails to get vectorized due to a redundant cast. Once this is fixed,
44 should be vectorized as follows:
45 dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target { vect_pack_trunc && vect_unpack } } }
47 /* { dg-final { cleanup-tree-dump "vect" } } */