Debian Codegraph @

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

raw
1 /* { dg-require-effective-target arm_v8_1m_mve_ok } */
2 /* { dg-add-options arm_v8_1m_mve } */
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 ** vdupt.8 q[0-9]+, (?:ip|fp|r[0-9]+)(?: @.*|)
20 ** ...
21 */
22 int8x16_t
23 foo (int8_t a, mve_pred16_t p)
24 {
25 return vdupq_x_n_s8 (a, p);
26 }
27
28 /*
29 **foo1:
30 ** ...
31 ** vmsr p0, (?:ip|fp|r[0-9]+)(?: @.*|)
32 ** ...
33 ** vpst(?: @.*|)
34 ** ...
35 ** vdupt.8 q[0-9]+, (?:ip|fp|r[0-9]+)(?: @.*|)
36 ** ...
37 */
38 int8x16_t
39 foo1 (mve_pred16_t p)
40 {
41 return vdupq_x_n_s8 (1, p);
42 }
43
44 #ifdef __cplusplus
45 }
46 #endif
47
48 /* { dg-final { scan-assembler-not "__ARM_undef" } } */