(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
aarch64/
pr70398.c
       1  /* { dg-do run } */
       2  /* { dg-require-effective-target static } */
       3  /* { dg-options "-O -fno-tree-loop-optimize -fno-tree-ter -static" } */
       4  unsigned int in[8 * 8] =
       5    { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
       6      45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63 };
       7  
       8  unsigned char out[8 * 8];
       9  
      10  int
      11  main (void)
      12  {
      13    int i;
      14    for (i = 0; i < 8 * 4; i++)
      15      {
      16        out[i * 2] = (unsigned char) in[i * 2] + 1;
      17        out[i * 2 + 1] = (unsigned char) in[i * 2 + 1] + 2;
      18      }
      19    __asm__("":::"memory");
      20    for (i = 0; i < 8 * 4; i++)
      21      {
      22        if (out[i * 2] != in[i * 2] + 1
      23  	  || out[i * 2 + 1] != in[i * 2 + 1] + 2)
      24  	__builtin_abort ();
      25      }
      26    return 0;
      27  }