blob: af0bebed20449f7d0aec7df312b8651497f6121d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
/* { dg-do compile } */
/* { dg-require-effective-target arm_vfp_ok } */
/* { dg-skip-if "need fp instructions" { *-*-* } { "-mfloat-abi=soft" } { "" } } */
/* { dg-options "-O2 -fno-rounding-math -mfpu=vfp -mfloat-abi=hard" } */
double
foo_d (double a, double b)
{
/* { dg-final { scan-assembler "vnmul\\.f64" } } */
return -a * b;
}
float
foo_s (float a, float b)
{
/* { dg-final { scan-assembler "vnmul\\.f32" } } */
return -a * b;
}
|