No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gcc4 / gcc / testsuite / gcc.target / sparc / fandnots.c
blob7a5ed24148c3f7824d529b4bacec3486d3e1d544
1 /* { dg-do compile } */
2 /* { dg-options "-O -mcpu=ultrasparc -mvis" } */
3 typedef char vec8 __attribute__((vector_size(4)));
4 typedef short vec16 __attribute__((vector_size(4)));
6 extern vec8 foo1_8(void);
7 extern vec8 foo2_8(void);
9 vec8 fun8(void)
11 return ~foo1_8 () & foo2_8 ();
14 extern vec16 foo1_16(void);
15 extern vec16 foo2_16(void);
17 vec16 fun16(void)
19 return ~foo1_16 () & foo1_16 ();
23 /* This should be transformed into ~b & a. */
24 vec8 fun8b(void)
26 return foo1_8 () & ~foo2_8 ();
29 vec16 fun16b(void)
31 return foo1_16 () & ~foo1_16 ();
34 /* { dg-final { scan-assembler-times "fandnot1s\t%" 4 } } */