Update ChangeLog and version files for release
[official-gcc.git] / gcc / testsuite / gcc.target / sparc / fhalve.c
blobb8f0745afc989b0d5e8b26ed032e0f76c484fc8a
1 /* { dg-do compile } */
2 /* { dg-options "-mvis3" } */
4 float test_fhadds (float x, float y)
6 return __builtin_vis_fhadds (x, y);
9 double test_fhaddd (double x, double y)
11 return __builtin_vis_fhaddd (x, y);
14 float test_fhsubs (float x, float y)
16 return __builtin_vis_fhsubs (x, y);
19 double test_fhsubd (double x, double y)
21 return __builtin_vis_fhsubd (x, y);
24 float test_fnhadds (float x, float y)
26 return __builtin_vis_fnhadds (x, y);
29 double test_fnhaddd (double x, double y)
31 return __builtin_vis_fnhaddd (x, y);
34 /* { dg-final { scan-assembler "fhadds\t%" } } */
35 /* { dg-final { scan-assembler "fhaddd\t%" } } */
36 /* { dg-final { scan-assembler "fhsubs\t%" } } */
37 /* { dg-final { scan-assembler "fhsubd\t%" } } */
38 /* { dg-final { scan-assembler "fnhadds\t%" } } */
39 /* { dg-final { scan-assembler "fnhaddd\t%" } } */