(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
i386/
pr100119.c
       1  /* PR target/100119 */
       2  /* { dg-do run { target sse2_runtime } } */
       3  /* { dg-require-effective-target fenv } */
       4  /* { dg-options "-O2 -frounding-math -msse2 -mno-avx512f -mfpmath=sse" } */
       5  
       6  #include <fenv.h>
       7  
       8  double
       9  __attribute__((noinline))
      10  test (unsigned int x)
      11  {
      12    return x;
      13  }
      14  
      15  int
      16  main ()
      17  {
      18    double result;
      19  
      20    fesetround (FE_DOWNWARD);
      21  
      22    result = test (0);
      23  
      24    if (__builtin_signbit (result) != 0)
      25      __builtin_abort ();
      26  
      27    return 0;
      28  }