home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c220 / 4.ddi / ETC / MULTEST < prev    next >
Encoding:
Text File  |  1990-12-16  |  795 b   |  21 lines

  1. To test if your 386 chip has the infamous multiply bug, check that
  2. the following multiplication works:
  3.  
  4.     0x417_a000 times 0x81  equals  0xfe7_a000.
  5.     
  6. Write a program that executes this several thousand times.
  7. If the answer comes out wrong, you definitely have a bad chip.
  8. If the answer's always right, you may still have a bad chip; Intel
  9. has no perfect test as yet.  Try the test at higher temperatures
  10. to aggravate the problem.
  11.  
  12. The problem occurs only with the 386 multiply instruction that produces
  13. a 64-bit result, as opposed to the 32x32=>32 multiply.  MetaWare's
  14. compilers never use the former multiply, only the latter.  Hence you'll
  15. have to use assembly language to test it out.
  16.  
  17. See "multest.asm" for an assembly language program that tests for the
  18. bad multiply.
  19.  
  20.  
  21.