PR rtl-optimization/87918
[official-gcc.git] / gcc / testsuite / gcc.target / sparc / fpcmpdeshl.c
blob3e3daa6e99f151dabe4b013beeaa86ec8c1db83b
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_fpcmpde8shl (vec8 a, vec8 b)
10 return __builtin_vis_fpcmpde8shl (a, b, 2);
13 long test_fpcmpde16shl (vec16 a, vec16 b)
15 return __builtin_vis_fpcmpde16shl (a, b, 2);
18 long test_fpcmpde32shl (vec32 a, vec32 b)
20 return __builtin_vis_fpcmpde32shl (a, b, 2);
23 /* { dg-final { scan-assembler "fpcmpde8shl\t%" } } */
24 /* { dg-final { scan-assembler "fpcmpde16shl\t%" } } */
25 /* { dg-final { scan-assembler "fpcmpde32shl\t%" } } */