Debian Codegraph @

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