Debian Codegraph @

gcc/testsuite/gcc.target/arm/mve/intrinsics/vldrwq_gather_shifted_offset_z_f32.c

raw
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 #ifdef __cplusplus
9 extern "C" {
10 #endif
11
12 /*
13 **foo:
14 ** ...
15 ** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|)
16 ** ...
17 ** vpst(?: @.*|)
18 ** ...
19 ** vldrwt.u32 q[0-9]+, \[(?:ip|fp|r[0-9]+), q[0-9]+, uxtw #2\](?: @.*|)
20 ** ...
21 */
22 float32x4_t
23 foo (float32_t const *base, uint32x4_t offset, mve_pred16_t p)
24 {
25 return vldrwq_gather_shifted_offset_z_f32 (base, offset, p);
26 }
27
28
29 /*
30 **foo1:
31 ** ...
32 ** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|)
33 ** ...
34 ** vpst(?: @.*|)
35 ** ...
36 ** vldrwt.u32 q[0-9]+, \[(?:ip|fp|r[0-9]+), q[0-9]+, uxtw #2\](?: @.*|)
37 ** ...
38 */
39 float32x4_t
40 foo1 (float32_t const *base, uint32x4_t offset, mve_pred16_t p)
41 {
42 return vldrwq_gather_shifted_offset_z (base, offset, p);
43 }
44
45 #ifdef __cplusplus
46 }
47 #endif
48
49 /* { dg-final { scan-assembler-not "__ARM_undef" } } */