summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmaxnmaq_f16.c
blob: 424e9e64b370604ae8270f79f44548a004f7496a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* { dg-do compile  } */
/* { dg-require-effective-target arm_v8_1m_mve_fp_ok } */
/* { dg-add-options arm_v8_1m_mve_fp } */
/* { dg-additional-options "-O2" } */

#include "arm_mve.h"

float16x8_t
foo (float16x8_t a, float16x8_t b)
{
  return vmaxnmaq_f16 (a, b);
}

/* { dg-final { scan-assembler "vmaxnma.f16"  }  } */

float16x8_t
foo1 (float16x8_t a, float16x8_t b)
{
  return vmaxnmaq (a, b);
}

/* { dg-final { scan-assembler "vmaxnma.f16"  }  } */