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);
11 return ~(foo1_8 () ^ foo2_8 ());
14 extern vec16
foo1_16(void);
15 extern vec16
foo2_16(void);
19 return ~(foo1_16 () ^ foo1_16 ());
23 /* This should be transformed into ~(b ^ a). */
26 return foo1_8 () ^ ~foo2_8 ();
31 return foo1_16 () ^ ~foo1_16 ();
34 /* { dg-final { scan-assembler-times "fxnors\t%" 4 } } */