blob: b3583ce57259d1798676662df2190c373fb99f15 [file] [log] [blame]
/* { dg-require-effective-target arm_v8_1m_mve_ok } */
/* { dg-add-options arm_v8_1m_mve } */
/* { dg-additional-options "-O2" } */
/* { dg-final { check-function-bodies "**" "" } } */
#include "arm_mve.h"
/*
**foo:
** ...
** vaddva.u16 (?:ip|fp|r[0-9]+), q[0-9]+(?: @.*|)
** ...
*/
uint32_t
foo (uint32_t a, uint16x8_t b)
{
return vaddvaq_u16 (a, b);
}
/*
**foo1:
** ...
** vaddva.u16 (?:ip|fp|r[0-9]+), q[0-9]+(?: @.*|)
** ...
*/
uint32_t
foo1 (uint32_t a, uint16x8_t b)
{
return vaddvaq (a, b);
}
/*
**foo2:
** ...
** vaddva.u16 (?:ip|fp|r[0-9]+), q[0-9]+(?: @.*|)
** ...
*/
uint32_t
foo2 (uint16x8_t b)
{
return vaddvaq (1, b);
}
/* { dg-final { scan-assembler-not "__ARM_undef" } } */