diff options
author | irungentoo <irungentoo@gmail.com> | 2013-07-13 10:09:38 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-07-13 10:09:38 -0400 |
commit | d4fe483efd3e0062f12430efe9deb66d43d914d7 (patch) | |
tree | e6aa9ac716ae82cdb15c6e6cb5d9d1d9d29f053b /nacl/okcompilers/main.c | |
parent | 835ef0320d47372eac14bef31c979b8217d04498 (diff) |
NaCl moved to other repo.
Diffstat (limited to 'nacl/okcompilers/main.c')
-rw-r--r-- | nacl/okcompilers/main.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/nacl/okcompilers/main.c b/nacl/okcompilers/main.c deleted file mode 100644 index 3b7efa25..00000000 --- a/nacl/okcompilers/main.c +++ /dev/null | |||
@@ -1,25 +0,0 @@ | |||
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); | ||
7 | |||
8 | int main(int argc,char **argv) | ||
9 | { | ||
10 | if (intbytes() != sizeof(int)) return 100; | ||
11 | if (longbytes() != sizeof(long)) return 100; | ||
12 | |||
13 | if (not3(3)) return 100; | ||
14 | |||
15 | /* on ppc32, gcc -mpowerpc64 produces SIGILL for >>32 */ | ||
16 | if (!not3(shr32(1))) return 100; | ||
17 | |||
18 | /* on pentium 1, gcc -march=pentium2 produces SIGILL for (...+7)/8 */ | ||
19 | if (bytes(not3(1)) != 1) return 100; | ||
20 | |||
21 | /* on pentium 1, gcc -march=prescott produces SIGILL for double comparison */ | ||
22 | if (double5() < 0) return 100; | ||
23 | |||
24 | return 0; | ||
25 | } | ||