Changeset 96b02eb9 in mainline for kernel/test/fpu
- Timestamp:
- 2010-12-14T12:52:38Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6b10dab
- Parents:
- 554debd
- Location:
- kernel/test/fpu
- Files:
-
- 4 edited
-
fpu1_ia64.c (modified) (2 diffs)
-
fpu1_x86.c (modified) (2 diffs)
-
mips2.c (modified) (4 diffs)
-
sse1.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/fpu/fpu1_ia64.c
r554debd r96b02eb9 85 85 86 86 if ((int) (100000000 * e) != E_10e8) { 87 TPRINTF("tid%" PRIu64 ": e*10e8=%zd should be %" PRIun "\n", THREAD->tid, ( unative_t) (100000000 * e), (unative_t) E_10e8);87 TPRINTF("tid%" PRIu64 ": e*10e8=%zd should be %" PRIun "\n", THREAD->tid, (sysarg_t) (100000000 * e), (sysarg_t) E_10e8); 88 88 atomic_inc(&threads_fault); 89 89 break; … … 118 118 119 119 if ((int) (1000000 * pi) != PI_10e8) { 120 TPRINTF("tid%" PRIu64 ": pi*10e8=%zd should be %" PRIun "\n", THREAD->tid, ( unative_t) (1000000 * pi), (unative_t) (PI_10e8 / 100));120 TPRINTF("tid%" PRIu64 ": pi*10e8=%zd should be %" PRIun "\n", THREAD->tid, (sysarg_t) (1000000 * pi), (sysarg_t) (PI_10e8 / 100)); 121 121 atomic_inc(&threads_fault); 122 122 break; -
kernel/test/fpu/fpu1_x86.c
r554debd r96b02eb9 83 83 if ((int) (100000000 * e) != E_10e8) { 84 84 TPRINTF("tid%" PRIu64 ": e*10e8=%" PRIun " should be %" PRIun "\n", 85 THREAD->tid, ( unative_t) (100000000 * e), (unative_t) E_10e8);85 THREAD->tid, (sysarg_t) (100000000 * e), (sysarg_t) E_10e8); 86 86 atomic_inc(&threads_fault); 87 87 break; … … 117 117 if ((int) (100000000 * pi) != PI_10e8) { 118 118 TPRINTF("tid%" PRIu64 ": pi*10e8=%" PRIun " should be %" PRIun "\n", 119 THREAD->tid, ( unative_t) (100000000 * pi), (unative_t) PI_10e8);119 THREAD->tid, (sysarg_t) (100000000 * pi), (sysarg_t) PI_10e8); 120 120 atomic_inc(&threads_fault); 121 121 break; -
kernel/test/fpu/mips2.c
r554debd r96b02eb9 48 48 { 49 49 int i; 50 int arg __attribute__((aligned(16))) = (int) (( unative_t) data);50 int arg __attribute__((aligned(16))) = (int) ((sysarg_t) data); 51 51 int after_arg __attribute__((aligned(16))); 52 52 … … 80 80 { 81 81 int i; 82 int arg __attribute__((aligned(16))) = (int) (( unative_t) data);82 int arg __attribute__((aligned(16))) = (int) ((sysarg_t) data); 83 83 int after_arg __attribute__((aligned(16))); 84 84 … … 123 123 thread_t *t; 124 124 125 if (!(t = thread_create(testit1, (void *) (( unative_t) 2 * i), TASK, 0, "testit1", false))) {125 if (!(t = thread_create(testit1, (void *) ((sysarg_t) 2 * i), TASK, 0, "testit1", false))) { 126 126 TPRINTF("could not create thread %u\n", 2 * i); 127 127 break; … … 130 130 total++; 131 131 132 if (!(t = thread_create(testit2, (void *) (( unative_t) 2 * i + 1), TASK, 0, "testit2", false))) {132 if (!(t = thread_create(testit2, (void *) ((sysarg_t) 2 * i + 1), TASK, 0, "testit2", false))) { 133 133 TPRINTF("could not create thread %u\n", 2 * i + 1); 134 134 break; -
kernel/test/fpu/sse1.c
r554debd r96b02eb9 48 48 { 49 49 int i; 50 int arg __attribute__((aligned(16))) = (int) (( unative_t) data);50 int arg __attribute__((aligned(16))) = (int) ((sysarg_t) data); 51 51 int after_arg __attribute__((aligned(16))); 52 52 … … 79 79 { 80 80 int i; 81 int arg __attribute__((aligned(16))) = (int) (( unative_t) data);81 int arg __attribute__((aligned(16))) = (int) ((sysarg_t) data); 82 82 int after_arg __attribute__((aligned(16))); 83 83 … … 121 121 thread_t *t; 122 122 123 if (!(t = thread_create(testit1, (void *) (( unative_t) 2 * i), TASK, 0, "testit1", false))) {123 if (!(t = thread_create(testit1, (void *) ((sysarg_t) 2 * i), TASK, 0, "testit1", false))) { 124 124 TPRINTF("could not create thread %u\n", 2 * i); 125 125 break; … … 128 128 total++; 129 129 130 if (!(t = thread_create(testit2, (void *) (( unative_t) 2 * i + 1), TASK, 0, "testit2", false))) {130 if (!(t = thread_create(testit2, (void *) ((sysarg_t) 2 * i + 1), TASK, 0, "testit2", false))) { 131 131 TPRINTF("could not create thread %u\n", 2 * i + 1); 132 132 break;
Note:
See TracChangeset
for help on using the changeset viewer.
