]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/erc32/end.c
* config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
[thirdparty/binutils-gdb.git] / sim / erc32 / end.c
1 main()
2 {
3
4 unsigned int u1;
5 char *c;
6 double d1;
7 float *f1;
8
9 c = (char *) &u1;
10 u1 = 0x0F;
11 if (c[0] == 0x0F)
12 puts("#define HOST_LITTLE_ENDIAN\n");
13 else
14 puts("#define HOST_BIG_ENDIAN\n");
15
16 d1 = 1.0;
17 f1 = (float *) &d1;
18 if (*((int *) f1) != 0x3ff00000)
19 puts("#define HOST_LITTLE_ENDIAN_FLOAT\n");
20 else
21 puts("#define HOST_BIG_ENDIAN_FLOAT\n");
22 exit(0);
23 }