PR rtl-optimization/87918
[official-gcc.git] / gcc / testsuite / gcc.target / sparc / fpcmpurshl.c
blobdb74e01b5f2c2359d53e71d45a22ee14a6f8c6dc
1 /* { dg-do compile } */
2 /* { dg-options "-mvis4b" } */
4 typedef unsigned char vec8 __attribute__((vector_size(8)));
5 typedef short vec16 __attribute__((vector_size(8)));
6 typedef int vec32 __attribute__((vector_size(8)));
8 long test_fpcmpur8shl (vec8 a, vec8 b)
10 return __builtin_vis_fpcmpur8shl (a, b, 2);
13 long test_fpcmpur16shl (vec16 a, vec16 b)
15 return __builtin_vis_fpcmpur16shl (a, b, 2);
18 long test_fpcmpur32shl (vec32 a, vec32 b)
20 return __builtin_vis_fpcmpur32shl (a, b, 2);
23 /* { dg-final { scan-assembler "fpcmpur8shl\t%" } } */
24 /* { dg-final { scan-assembler "fpcmpur16shl\t%" } } */
25 /* { dg-final { scan-assembler "fpcmpur32shl\t%" } } */