Debian Codegraph @

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

raw
1 /* { dg-require-effective-target arm_v8_1m_mve_ok } */
2 /* { dg-add-options arm_v8_1m_mve } */
3 /* { dg-require-effective-target arm_hard_ok } */
4 /* { dg-additional-options "-mfloat-abi=hard -O2" } */
5 /* { dg-final { check-function-bodies "**" "" } } */
6
7 #include "arm_mve.h"
8
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12
13 /*
14 **fn1:
15 ** vmov d0, r0, r1
16 ** bx lr
17 */
18 uint64x2_t
19 fn1 (uint64_t a, uint64x2_t b)
20 {
21 return vsetq_lane_u64 (a, b, 0);
22 }
23
24 /*
25 **fn2:
26 ** vmov d1, r0, r1
27 ** bx lr
28 */
29 uint64x2_t
30 fn2 (uint64_t a, uint64x2_t b)
31 {
32 return vsetq_lane_u64 (a, b, 1);
33 }
34
35 /*
36 **fn3:
37 ** vmov d0, r0, r1
38 ** bx lr
39 */
40 int64x2_t
41 fn3 (int64_t a, int64x2_t b)
42 {
43 return vsetq_lane_s64 (a, b, 0);
44 }
45
46 /*
47 **fn4:
48 ** vmov d1, r0, r1
49 ** bx lr
50 */
51 int64x2_t
52 fn4 (int64_t a, int64x2_t b)
53 {
54 return vsetq_lane_s64 (a, b, 1);
55 }
56
57
58 #ifdef __cplusplus
59 }
60 #endif
61
62 /* { dg-final { scan-assembler-not "__ARM_undef" } } */
63