Changes to update Tomato RAF.
[tomato.git] / release / src / router / dnscrypt / src / libnacl / okcompilers / test5.c
blob3b7efa2556f6bbb70ddd7c2c4f154f1039a252b8
1 extern int not3(int);
2 extern int bytes(int);
3 extern long long shr32(long long);
4 extern double double5(void);
5 extern int longbytes(void);
6 extern int intbytes(void);
8 int main(int argc,char **argv)
10 if (intbytes() != sizeof(int)) return 100;
11 if (longbytes() != sizeof(long)) return 100;
13 if (not3(3)) return 100;
15 /* on ppc32, gcc -mpowerpc64 produces SIGILL for >>32 */
16 if (!not3(shr32(1))) return 100;
18 /* on pentium 1, gcc -march=pentium2 produces SIGILL for (...+7)/8 */
19 if (bytes(not3(1)) != 1) return 100;
21 /* on pentium 1, gcc -march=prescott produces SIGILL for double comparison */
22 if (double5() < 0) return 100;
24 return 0;