blob: 8b77eec6f2e988d4a2c06a0c0325995dc662fe05 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/* { dg-do compile } */
/* { dg-options "-O2" } */
double
foo_d (double a, double b)
{
/* { dg-final { scan-assembler "fnmul\\td\[0-9\]+, d\[0-9\]+, d\[0-9\]+" } } */
return -(a * b);
}
float
foo_s (float a, float b)
{
/* { dg-final { scan-assembler "fnmul\\ts\[0-9\]+, s\[0-9\]+, s\[0-9\]+" } } */
return -(a * b);
}
|