(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
arm/
armv6-unaligned-load-ice.c
       1  /* { dg-do compile } */
       2  /* { dg-skip-if "avoid conflicting multilib options" { *-*-* } { "-march=*" } { "-march=armv6k" } } */
       3  /* { dg-skip-if "avoid conflicting multilib options" { *-*-* } { "-marm" } { "" } } */
       4  /* { dg-require-effective-target arm_arch_v6k_thumb_ok } */
       5  /* { dg-options "-mthumb -Os -mfloat-abi=softfp" } */
       6  /* { dg-add-options arm_arch_v6k } */
       7  
       8  long
       9  get_number (char *s, long size, int unsigned_p)
      10  {
      11    long x;
      12    unsigned char *p = (unsigned char *) s;
      13    switch (size)
      14      {
      15      case 4:
      16        x = ((long) p[3] << 24) | ((long) p[2] << 16) | (p[1] << 8) | p[0];
      17        return x;
      18      }
      19  }