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 int16x8_t foo(int16x8_t a,int16x8_t b)8foo (int16x8_t a, int16x8_t b) 9 { 10 return vrhaddq_s16 (a, b); 11 } 12 13 /* { dg-final { scan-assembler "vrhadd.s16" } } */ 14 15 int16x8_t foo1(int16x8_t a,int16x8_t b)16foo1 (int16x8_t a, int16x8_t b) 17 { 18 return vrhaddq (a, b); 19 } 20 21 /* { dg-final { scan-assembler "vrhadd.s16" } } */ 22