testsuite/52641 - Fix more sloppy tests.
[official-gcc.git] / gcc / testsuite / gcc.target / arm / mve / dlstp-int32x4.c
blob5d09f784b7716c14e56086b7e66eb12b31772a45
1 /* { dg-do compile { target { arm*-*-* } } } */
2 /* { dg-require-effective-target arm_v8_1m_mve_ok } */
3 /* { dg-options "-O2 -save-temps" } */
4 /* { dg-add-options arm_v8_1m_mve } */
6 #include <arm_mve.h>
7 #include <stdio.h>
8 #include <stdlib.h>
9 #include "../lob.h"
11 void __attribute__ ((noinline)) test (int32_t *a, int32_t *b, int32_t *c, int n)
13 while (n > 0)
15 mve_pred16_t p = vctp32q (n);
16 int32x4_t va = vldrwq_z_s32 (a, p);
17 int32x4_t vb = vldrwq_z_s32 (b, p);
18 int32x4_t vc = vaddq_x_s32 (va, vb, p);
19 vstrwq_p_s32 (c, vc, p);
20 c+=4;
21 a+=4;
22 b+=4;
23 n-=4;
27 /* { dg-final { scan-assembler-times {\tdlstp.32} 1 } } */
28 /* { dg-final { scan-assembler-times {\tletp} 1 } } */
29 /* { dg-final { scan-assembler-not "\tvctp" } } */
30 /* { dg-final { scan-assembler-not "\tvpst" } } */
31 /* { dg-final { scan-assembler-not "p0" } } */