1  /* PR 15184 second two tests
       2  /* { dg-do compile { target ia32 } } */
       3  /* { dg-options "-O2 -march=pentiumpro" } */
       4  /* { dg-additional-options "-fno-PIE" { target ia32 } } */
       5  
       6  #define regparm __attribute__((__regparm__(1)))
       7  
       8  extern unsigned short y;
       9  
      10  void regparm g0(unsigned char c)
      11  {
      12          y = (y & 0xFF00) | (unsigned short)c;
      13  }
      14  
      15  void regparm g1(unsigned char c)
      16  {
      17          y = (y & 0x00FF) | ((unsigned short)c << 8);
      18  }
      19  
      20  /* Each function should compile down to a byte move from
      21     the input register into y, possibly at an offset within y.  */
      22  /* { dg-final { scan-assembler-times "movb\[ \\t\]+%al" 2 } } */
      23