1 /* Limit this test to selected targets with IEEE double, 8-byte long long,
2 supported 4x int vectors, 4-byte int. */
3 /* { dg-do compile { target { i?86-*-* x86_64-*-* powerpc*-*-* } } } */
4 /* { dg-options "-O3 -fdump-tree-optimized" } */
5 /* { dg-additional-options "-msse2" { target ia32 } } */
6 /* { dg-additional-options "-mvsx -maltivec" { target powerpc*-*-* } } */
8 typedef int V
__attribute__((__vector_size__ (16)));
20 for (i
= 0; i
< N
; i
++)
21 d
[i
] = 747708026454360457216.0;
28 for (i
= 0; i
< N
; i
++)
29 l
[i
] = 0x7c7c7c7c7c7c7c7cULL
;
36 for (i
= 0; i
< N
; i
++)
44 for (i
= 0; i
< N
; i
++)
45 c
[i
] = 747708026454360457216.0 + 747708026454360457216.0i
;
52 for (i
= 0; i
< N
; i
++)
53 v
[i
] = (V
) { 0x12121212, 0x12121212, 0x12121212, 0x12121212 };
57 __builtin_memset (&d, 68, 8192);
58 __builtin_memset (&l, 124, 8192);
59 __builtin_memset (&b, 1, 1024);
60 __builtin_memset (&c, 68, 16384);
61 __builtin_memset (&v, 18, 16384); */
62 /* { dg-final { scan-tree-dump-times "memset ..d, 68, 8192.;" 1 "optimized" } } */
63 /* { dg-final { scan-tree-dump-times "memset ..l, 124, 8192.;" 1 "optimized" } } */
64 /* { dg-final { scan-tree-dump-times "memset ..b, 1, 1024.;" 1 "optimized" } } */
65 /* { dg-final { scan-tree-dump-times "memset ..c, 68, 16384.;" 1 "optimized" } } */
66 /* { dg-final { scan-tree-dump-times "memset ..v, 18, 16384.;" 1 "optimized" } } */