1  /* { dg-do compile } */
       2  /* { dg-options "-O3" } */
       3  
       4  typedef unsigned char uint8_t;
       5  
       6  static inline uint8_t
       7  x264_clip_uint8(uint8_t x)
       8  {
       9    uint8_t t = -x;
      10    uint8_t t1 = x & ~63; 
      11    return (t1 != 0) ? t : x; 
      12  }
      13  
      14  void
      15  mc_weight(uint8_t *restrict dst, uint8_t *restrict src, int n)
      16  {
      17    for (int x = 0; x < n*16; x++)
      18      dst[x] = x264_clip_uint8(src[x]);
      19  }
      20  
      21  /* { dg-final { scan-assembler-not {\tsel} } } */