1 /* { dg-require-effective-target arm_v8_1m_mve_ok } */
2 /* { dg-add-options arm_v8_1m_mve } */
3 /* { dg-additional-options "-O2" } */
4
5 #include "arm_mve.h"
6
7 int8x16_t
foo(int8x16_t a,uint32_t * b,mve_pred16_t p)8 foo (int8x16_t a, uint32_t * b, mve_pred16_t p)
9 {
10 return vshlcq_m_s8 (a, b, 1, p);
11 }
12
13 /* { dg-final { scan-assembler "vpst" } } */
14 /* { dg-final { scan-assembler "vshlct" } } */
15
16 int8x16_t
foo1(int8x16_t a,uint32_t * b,mve_pred16_t p)17 foo1 (int8x16_t a, uint32_t * b, mve_pred16_t p)
18 {
19 return vshlcq_m (a, b, 1, p);
20 }
21
22 /* { dg-final { scan-assembler "vpst" } } */
23 /* { dg-final { scan-assembler "vshlct" } } */
24