[committed] [RISC-V] Skip zbs-ext-2.c for -Oz as well
[official-gcc.git] / gcc / testsuite / gcc.target / arm / armv6-unaligned-load-ice.c
blob886a0129f85dff3fcafe2a7462ac81c0b2ad13df
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 } */
8 long
9 get_number (char *s, long size, int unsigned_p)
11 long x;
12 unsigned char *p = (unsigned char *) s;
13 switch (size)
15 case 4:
16 x = ((long) p[3] << 24) | ((long) p[2] << 16) | (p[1] << 8) | p[0];
17 return x;