* gcc.target/i386/pr70021.c: Add -mtune=skylake.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / iamcu / test_basic_alignment.c
blobf14cf17023683a37939b11c25dfee32225672e6d
1 /* This checks alignment of basic types. */
3 #include "defines.h"
4 #include "macros.h"
7 int
8 main (void)
10 /* Integral types. */
11 run_signed_tests2(check_align, char, TYPE_ALIGN_CHAR);
12 run_signed_tests2(check_align, short, TYPE_ALIGN_SHORT);
13 run_signed_tests2(check_align, int, TYPE_ALIGN_INT);
14 run_signed_tests2(check_align, long, TYPE_ALIGN_LONG);
15 run_signed_tests2(check_align, long long, TYPE_ALIGN_LONG_LONG);
16 check_align(enumtype, TYPE_ALIGN_ENUM);
18 /* Floating point types. */
19 check_align(float, TYPE_ALIGN_FLOAT);
20 check_align(double, TYPE_ALIGN_DOUBLE);
21 #ifdef CHECK_LONG_DOUBLE
22 check_align(long double, TYPE_ALIGN_LONG_DOUBLE);
23 #endif
24 #ifdef CHECK_FLOAT128
25 check_align(__float128, TYPE_ALIGN_FLOAT128);
26 #endif
28 /* Pointer types. */
29 check_align(void *, TYPE_ALIGN_POINTER);
30 check_align(void (*)(), TYPE_ALIGN_POINTER);
32 return 0;