2016-12-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
[official-gcc.git] / gcc / testsuite / gcc.target / sparc / fnegop.c
blobcbdf28f4c6017adc5d3708c98b7e5c06b9ac8a40
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mvis3" } */
4 float test_fnadds(float x, float y)
6 return -(x + y);
9 double test_fnaddd(double x, double y)
11 return -(x + y);
14 float test_fnmuls(float x, float y)
16 return -(x * y);
19 double test_fnmuld(double x, double y)
21 return -(x * y);
24 double test_fnsmuld(float x, float y)
26 return -((double)x * (double)y);
29 /* { dg-final { scan-assembler "fnadds\t%" } } */
30 /* { dg-final { scan-assembler "fnaddd\t%" } } */
31 /* { dg-final { scan-assembler "fnmuls\t%" } } */
32 /* { dg-final { scan-assembler "fnmuld\t%" } } */
33 /* { dg-final { scan-assembler "fnsmuld\t%" } } */