Debian Codegraph @

gcc/testsuite/gcc.target/arm/mve/intrinsics/vdupq_n_s16-2.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 /* Test with a constant that does not fit in vmov. */
13 /*
14 **foo1:
15 ** ...
16 ** mov r[0-9]+, #1000(?: @.*|)
17 ** vdup.16 q[0-9]+, r[0-9]+
18 ** ...
19 */
20 int16x8_t
21 foo1 ()
22 {
23 return vdupq_n_s16 (1000);
24 }
25
26 #ifdef __cplusplus
27 }
28 #endif
29
30 /* { dg-final { scan-assembler-not "__ARM_undef" } } */