Debian Codegraph @

gcc/testsuite/gcc.target/arm/mve/mve_const_shifts.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 **foo11:
14 ** ...
15 ** movs r0, #2
16 ** ...
17 */
18 uint32_t
19 foo11 ()
20 {
21 return uqshl (1, 1);
22 }
23
24 /*
25 **foo12:
26 ** ...
27 ** movs r0, #2
28 ** movs r1, #0
29 ** ...
30 */
31 uint64_t
32 foo12 ()
33 {
34 return uqshll (1, 1);
35 }
36
37 #ifdef __cplusplus
38 }
39 #endif
40
41 /* { dg-final { scan-assembler-not "__ARM_undef" } } */