aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/vnmul-4.c
blob: 451a91faae9b26e65ba44b4c75d27d766a63f70d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* { dg-do compile } */
/* { dg-require-effective-target arm_fp_dp_ok } */
/* { dg-skip-if "need fp instructions" { *-*-* } { "-mfloat-abi=soft" } { "" } } */
/* { dg-options "-O2 -frounding-math" } */
/* { dg-add-options arm_fp_dp } */

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);
}