| 
                Last change
                  on this file was
                  81,
                  checked in by rosiere, 18 years ago
           | 
        
        
          
              - Finish Environment (and test)
 - Continue predictor_unit
 - Add external tools
 - svn keyword "Id" set
  
           | 
        
        
          
            
              - 
                  Property svn:keywords set to
                  
Id
               
             
           | 
        
        | 
            File size:
            1.5 KB
           | 
      
      
        
  | Line |   | 
|---|
| 1 | #include <stdio.h> | 
|---|
| 2 | #include "func_integrity.h" | 
|---|
| 3 | #include "func_io.h" | 
|---|
| 4 |  | 
|---|
| 5 | extern bool  asm_001_add          (); | 
|---|
| 6 | extern bool  asm_002_addc         (); | 
|---|
| 7 | extern bool  asm_003_extend       (); | 
|---|
| 8 | extern bool  asm_004_sfeq         (); | 
|---|
| 9 | extern bool  asm_005_sfne         (); | 
|---|
| 10 | extern bool  asm_006_sfges        (); | 
|---|
| 11 | extern bool  asm_007_sfgeu        (); | 
|---|
| 12 | extern bool  asm_008_sfgts        (); | 
|---|
| 13 | extern bool  asm_009_sfgtu        (); | 
|---|
| 14 | extern bool  asm_010_sfles        (); | 
|---|
| 15 | extern bool  asm_011_sfleu        (); | 
|---|
| 16 | extern bool  asm_012_sflts        (); | 
|---|
| 17 | extern bool  asm_013_sfltu        (); | 
|---|
| 18 | extern bool  asm_014_cmov         (); | 
|---|
| 19 | extern bool  asm_015_shift_rotate (); | 
|---|
| 20 | extern bool  asm_016_load         (); | 
|---|
| 21 | extern bool  asm_017_mul          (); | 
|---|
| 22 |  | 
|---|
| 23 | bool test_integrity () | 
|---|
| 24 | { | 
|---|
| 25 |   bool res; | 
|---|
| 26 |  | 
|---|
| 27 |   res =  | 
|---|
| 28 |     asm_001_add          () && | 
|---|
| 29 |     asm_002_addc         () && | 
|---|
| 30 |     asm_003_extend       () && | 
|---|
| 31 |     asm_004_sfeq         () && | 
|---|
| 32 |     asm_005_sfne         () && | 
|---|
| 33 |     asm_006_sfges        () && | 
|---|
| 34 |     asm_007_sfgeu        () && | 
|---|
| 35 |     asm_008_sfgts        () && | 
|---|
| 36 |     asm_009_sfgtu        () && | 
|---|
| 37 |     asm_010_sfles        () && | 
|---|
| 38 |     asm_011_sfleu        () && | 
|---|
| 39 |     asm_012_sflts        () && | 
|---|
| 40 |     asm_013_sfltu        () && | 
|---|
| 41 |     asm_014_cmov         () && | 
|---|
| 42 |     asm_015_shift_rotate () && | 
|---|
| 43 |     asm_016_load         () && | 
|---|
| 44 |     asm_017_mul          () && | 
|---|
| 45 |     1; | 
|---|
| 46 |  | 
|---|
| 47 |   if (res == true) | 
|---|
| 48 |     { | 
|---|
| 49 |       print(1); | 
|---|
| 50 |       printf("<test_integrity> Test is Ok\n"); | 
|---|
| 51 |     } | 
|---|
| 52 |    | 
|---|
| 53 |   else | 
|---|
| 54 |     { | 
|---|
| 55 |       quit(-1); | 
|---|
| 56 |       printf("<test_integrity> Test is Ko\n"); | 
|---|
| 57 |     } | 
|---|
| 58 |    | 
|---|
| 59 |   return res; | 
|---|
| 60 | } | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.