Debian Codegraph @

gcc/testsuite/gcc.target/arm/mve/pr114801.c

raw
1 /* { dg-do compile } */
2 /* { dg-require-effective-target arm_v8_1m_mve_ok } */
3 /* { dg-options "-O2" } */
4 /* { dg-add-options arm_v8_1m_mve } */
5 /* { dg-final { check-function-bodies "**" "" "" } } */
6
7 #include <arm_mve.h>
8
9 /*
10 ** test_32:
11 **...
12 ** mov r[0-9]+, #65295 @ movhi
13 **...
14 */
15 uint32x4_t test_32() {
16 /* V4BI predicate converted to 0xff0f. */
17 return vdupq_m_n_u32(vdupq_n_u32(0xffffffff), 0, 0x4f02); /* { dg-warning {constant predicate argument 3 \(0x4f02\) does not map to 4 lane numbers, converted to 0xff0f} } */
18 }
19
20 /*
21 ** test_16:
22 **...
23 ** mov r[0-9]+, #12339 @ movhi
24 **...
25 */
26 uint16x8_t test_16() {
27 /* V8BI predicate converted to 0x3033. */
28 return vdupq_m_n_u16(vdupq_n_u16(0xffff), 0, 0x3021); /* { dg-warning {constant predicate argument 3 \(0x3021\) does not map to 8 lane numbers, converted to 0x3033} } */
29 }
30
31 /*
32 ** test_8:
33 **...
34 ** mov r[0-9]+, #23055 @ movhi
35 **...
36 */
37 uint8x16_t test_8() {
38 return vdupq_m_n_u8(vdupq_n_u8(0xff), 0, 0x5a0f);
39 }