Changeset f272cb8 in mainline for kernel/test/fpu/sse1.c


Ignore:
Timestamp:
2006-12-11T19:19:28Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
70b6de1
Parents:
50661ab
Message:

integrate more tests

File:
1 moved

Legend:

Unmodified
Added
Removed
  • kernel/test/fpu/sse1.c

    r50661ab rf272cb8  
    3737
    3838#include <arch.h>
     39
     40#ifdef CONFIG_BENCH
     41#include <arch/cycle.h>
     42#endif
     43
     44#if (defined(ia32) || defined(amd64) || defined(ia32xen))
    3945
    4046#define THREADS         50
     
    106112
    107113
    108 void test(void)
     114void test_sse1(void)
    109115{
     116#ifdef CONFIG_BENCH
     117        uint64_t t0 = get_cycle();
     118#endif
    110119        thread_t *t;
    111120        int i;
     
    134143               
    135144        printf("Test passed.\n");
     145#ifdef CONFIG_BENCH
     146        uint64_t dt = get_cycle() - t0;
     147        printf("Time: %.*d cycles\n", sizeof(dt) * 2, dt);
     148#endif
    136149}
     150
     151#else
     152
     153void test_sse1(void)
     154{
     155        printf("This test is available only on SSE enabled platforms.");
     156}
     157
     158#endif
Note: See TracChangeset for help on using the changeset viewer.