Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.target / sparc / fnot.c
blobe6f98d412a6b90eaf4c612e206ec45dbe0124b70
1 /* { dg-do compile } */
2 /* { dg-options "-O -mcpu=ultrasparc -mvis" } */
3 typedef char vec8 __attribute__((vector_size(8)));
4 typedef short vec16 __attribute__((vector_size(8)));
5 typedef int vec32 __attribute__((vector_size(8)));
7 extern vec8 foo1_8(void);
8 extern void foo2_8(vec8);
10 vec8 fun8(void)
12 return ~foo1_8 ();
15 #ifndef __LP64__
16 /* Test the 32-bit splitter. */
17 vec8 fun8_2(vec8 a)
19 foo2_8 (~a);
21 #endif
23 extern vec16 foo1_16(void);
24 extern void foo2_16(vec8);
27 vec16 fun16(void)
29 return ~foo1_16 ();
32 #ifndef __LP64__
33 /* Test the 32-bit splitter. */
34 vec16 fun16_2(vec16 a)
36 foo2_16 (~a);
38 #endif
40 extern vec32 foo1_32(void);
41 extern void foo2_32(vec8);
43 vec32 fun32(void)
45 return ~foo1_32 ();
48 #ifndef __LP64__
49 /* Test the 32-bit splitter. */
50 vec32 fun32_2(vec32 a)
52 foo2_32 (~a);
54 #endif
56 /* { dg-final { scan-assembler-times "fnot1\t%" 3 } } */