(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
i386/
pr95052.c
       1  /* PR middle-end/95052 */
       2  /* { dg-do compile } */
       3  /* { dg-options "-Os -mtune=skylake" } */
       4  /* Verify we don't waste almost 2 megabytes of .rodata.  */
       5  /* { dg-final { scan-assembler-not "\.zero\t1048\[0-9]\[0-9]\[0-9]" } } */
       6  extern void foo (char *, unsigned);
       7  
       8  int
       9  main ()
      10  {
      11    char str[1024 * 1024] =
      12      "fooiuhluhpiuhliuhliyfyukyfklyugkiuhpoipoipoipoipoipoipoipoipoipoipoipoipoimipoipiuhoulouihnliuhl";
      13    char arr[1024 * 1024] =
      14      { 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 6, 2, 3,
      15        4, 5, 6, 7, 8, 9, 0, 3, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6,
      16        7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0 };
      17    foo (str, sizeof (str));
      18    foo (arr, sizeof (arr));
      19    return 0;
      20  }