(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
pr51821.c
       1  /* { dg-do run } */
       2  /* { dg-options "-std=c99 -O2" } */
       3  /* { dg-additional-options "-msse" { target { i?86-*-* x86_64-*-* } } } */
       4  /* { dg-require-effective-target sse_runtime { target { i?86-*-* x86_64-*-* } } } */
       5  
       6  extern void abort (void);
       7  
       8  unsigned int  __attribute__((noinline))
       9  test (int shift_size)
      10  {
      11    unsigned long long res = ~0;
      12  
      13    return res << shift_size;
      14  }
      15  
      16  int
      17  main ()
      18  {
      19    int dst = 32;
      20  
      21    if (test (dst) != 0)
      22      abort ();
      23  
      24    return 0;
      25  }