2018-03-08 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / arm / armv6-unaligned-load-ice.c
blob88528f11e121d7aa16607e4e4024ce01124e0fd4
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-options "-mthumb -Os -mfloat-abi=softfp" } */
5 /* { dg-add-options arm_arch_v6k } */
7 long
8 get_number (char *s, long size, int unsigned_p)
10 long x;
11 unsigned char *p = (unsigned char *) s;
12 switch (size)
14 case 4:
15 x = ((long) p[3] << 24) | ((long) p[2] << 16) | (p[1] << 8) | p[0];
16 return x;