Debian Codegraph @

gcc/testsuite/gcc.target/arm/mve/intrinsics/vsbciq_s32.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 ** vsbci.i32 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|)
16 ** ...
17 ** vmrs (?:ip|fp|r[0-9]+), FPSCR_nzcvqc(?: @.*|)
18 ** ...
19 ** ubfx (?:ip|fp|r[0-9]+), (?:ip|fp|r[0-9]+), #29, #1(?: @.*|)
20 ** ...
21 */
22 int32x4_t
23 foo (int32x4_t a, int32x4_t b, unsigned *carry_out)
24 {
25 return vsbciq_s32 (a, b, carry_out);
26 }
27
28
29 /*
30 **foo1:
31 ** ...
32 ** vsbci.i32 q[0-9]+, q[0-9]+, q[0-9]+(?: @.*|)
33 ** ...
34 ** vmrs (?:ip|fp|r[0-9]+), FPSCR_nzcvqc(?: @.*|)
35 ** ...
36 ** ubfx (?:ip|fp|r[0-9]+), (?:ip|fp|r[0-9]+), #29, #1(?: @.*|)
37 ** ...
38 */
39 int32x4_t
40 foo1 (int32x4_t a, int32x4_t b, unsigned *carry_out)
41 {
42 return vsbciq (a, b, carry_out);
43 }
44
45 #ifdef __cplusplus
46 }
47 #endif
48
49 /* { dg-final { scan-assembler-not "__ARM_undef" } } */