(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
i386/
pr53533-3.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-O1 -fwrapv" } */
       3  /* { dg-final { scan-assembler-times "imull\[ \t\]" "1" } } */
       4  /* { dg-final { scan-assembler-times "(?:addl|subl)\[ \t\]" "1" { target { ! ia32 } } } } */
       5  
       6  void
       7  __attribute__((noipa))
       8  foo (int a[256], int b[256])
       9  {
      10    int i;
      11    for (i = 0; i < 256; ++i)
      12      {
      13        int tmp = a[i] + 12345;
      14        tmp *= 914237;
      15        tmp += 12332;
      16        tmp *= 914237;
      17        tmp += 12332;
      18        tmp *= 914237;
      19        tmp -= 13;
      20        tmp *= 8000;
      21        b[i] = tmp;
      22      }
      23  }
      24