]> gcc.gnu.org Git - gcc.git/blame - gcc/testsuite/gcc.target/arm/mve/intrinsics/vqdmulhq_m_s32.c
arm: improve tests for vqdmul*
[gcc.git] / gcc / testsuite / gcc.target / arm / mve / intrinsics / vqdmulhq_m_s32.c
CommitLineData
8eb3b6b9
SP
1/* { dg-require-effective-target arm_v8_1m_mve_ok } */
2/* { dg-add-options arm_v8_1m_mve } */
3/* { dg-additional-options "-O2" } */
02070844 4/* { dg-final { check-function-bodies "**" "" } } */
8eb3b6b9
SP
5
6#include "arm_mve.h"
7
02070844
AC
8/*
9**foo:
10** ...
11** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|)
12** ...
13** vpst(?: @.*|)
14** ...
15** vqdmulht.s32 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|)
16** ...
17*/
8eb3b6b9
SP
18int32x4_t
19foo (int32x4_t inactive, int32x4_t a, int32x4_t b, mve_pred16_t p)
20{
21 return vqdmulhq_m_s32 (inactive, a, b, p);
22}
23
8eb3b6b9 24
02070844
AC
25/*
26**foo1:
27** ...
28** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|)
29** ...
30** vpst(?: @.*|)
31** ...
32** vqdmulht.s32 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|)
33** ...
34*/
8eb3b6b9
SP
35int32x4_t
36foo1 (int32x4_t inactive, int32x4_t a, int32x4_t b, mve_pred16_t p)
37{
38 return vqdmulhq_m (inactive, a, b, p);
39}
40
02070844 41/* { dg-final { scan-assembler-not "__ARM_undef" } } */
This page took 2.343758 seconds and 5 git commands to generate.