]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/gcc.target/arm/mve/intrinsics/vsubq_f16.c
arm: improve tests and fix vsubq*
[gcc.git] / gcc / testsuite / gcc.target / arm / mve / intrinsics / vsubq_f16.c
1 /* { dg-require-effective-target arm_v8_1m_mve_fp_ok } */
2 /* { dg-add-options arm_v8_1m_mve_fp } */
3 /* { dg-additional-options "-O2" } */
4 /* { dg-final { check-function-bodies "**" "" } } */
5
6 #include "arm_mve.h"
7
8 /*
9 **foo:
10 ** ...
11 ** vsub.f16 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|)
12 ** ...
13 */
14 float16x8_t
15 foo (float16x8_t a, float16x8_t b)
16 {
17 return vsubq_f16 (a, b);
18 }
19
20
21 /*
22 **foo1:
23 ** ...
24 ** vsub.f16 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|)
25 ** ...
26 */
27 float16x8_t
28 foo1 (float16x8_t a, float16x8_t b)
29 {
30 return vsubq (a, b);
31 }
32
33 /* { dg-final { scan-assembler-not "__ARM_undef" } } */
This page took 0.040087 seconds and 5 git commands to generate.