annotate gcc/testsuite/gcc.target/arm/mve/intrinsics/vst4q_f32.c @ 19:2b5abeee2509 default tip

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
19
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
1 /* { dg-require-effective-target arm_v8_1m_mve_fp_ok } */
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
2 /* { dg-add-options arm_v8_1m_mve_fp } */
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
3 /* { dg-additional-options "-O2" } */
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
4
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
5 #include "arm_mve.h"
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
6
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
7 void
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
8 foo (float32_t * addr, float32x4x4_t value)
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
9 {
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
10 vst4q_f32 (addr, value);
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
11 }
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
12
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
13 /* { dg-final { scan-assembler "vst40.32" } } */
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
14 /* { dg-final { scan-assembler "vst41.32" } } */
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
15 /* { dg-final { scan-assembler "vst42.32" } } */
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
16 /* { dg-final { scan-assembler "vst43.32" } } */
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
17
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
18 void
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
19 foo1 (float32_t * addr, float32x4x4_t value)
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
20 {
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
21 vst4q (addr, value);
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
22 }
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
23
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
24 /* { dg-final { scan-assembler "vst40.32" } } */
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
25 /* { dg-final { scan-assembler "vst41.32" } } */
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
26 /* { dg-final { scan-assembler "vst42.32" } } */
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
27 /* { dg-final { scan-assembler "vst43.32" } } */
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
28
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
29 void
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
30 foo2 (float32_t * addr, float32x4x4_t value)
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
31 {
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
32 vst4q_f32 (addr, value);
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
33 addr += 16;
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
34 vst4q_f32 (addr, value);
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
35 }
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
36
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
37 /* { dg-final { scan-assembler {vst43.32\s\{.*\}, \[.*\]!} } } */