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  **	vcmp.u16	hi, q[0-9]+, (?:ip|fp|r[0-9]+)(?:	@.*|)
      16  **	...
      17  **	vmrs	(?:ip|fp|r[0-9]+), p0(?:	@.*|)
      18  **	...
      19  */
      20  mve_pred16_t
      21  foo (uint16x8_t a, uint16_t b)
      22  {
      23    return vcmphiq_n_u16 (a, b);
      24  }
      25  
      26  
      27  /*
      28  **foo1:
      29  **	...
      30  **	vcmp.u16	hi, q[0-9]+, (?:ip|fp|r[0-9]+)(?:	@.*|)
      31  **	...
      32  **	vmrs	(?:ip|fp|r[0-9]+), p0(?:	@.*|)
      33  **	...
      34  */
      35  mve_pred16_t
      36  foo1 (uint16x8_t a, uint16_t b)
      37  {
      38    return vcmphiq (a, b);
      39  }
      40  
      41  /*
      42  **foo2: { xfail *-*-* }
      43  **	...
      44  **	vcmp.u16	hi, q[0-9]+, (?:ip|fp|r[0-9]+)(?:	@.*|)
      45  **	...
      46  **	vmrs	(?:ip|fp|r[0-9]+), p0(?:	@.*|)
      47  **	...
      48  */
      49  mve_pred16_t
      50  foo2 (uint16x8_t a)
      51  {
      52    return vcmphiq (a, 1);
      53  }
      54  
      55  #ifdef __cplusplus
      56  }
      57  #endif
      58  
      59  /* { dg-final { scan-assembler-not "__ARM_undef" } } */