r2-fpu.s 409 B

12345678910111213141516171819202122232425262728293031
  1. # mips r2 fpu tests
  2. # mach: mips32r2 mips64r2
  3. # as: -mabi=eabi
  4. # ld: -N -Ttext=0x80010000
  5. # output: *\\npass\\n
  6. .include "testutils.inc"
  7. setup
  8. .set noreorder
  9. .ent DIAG
  10. DIAG:
  11. writemsg "[1] Test qNaN format is 754-1985"
  12. li $6, 0x7fbfffff
  13. mtc1 $0, $f2
  14. mtc1 $0, $f4
  15. div.s $f6, $f2, $f4
  16. mfc1 $8, $f6
  17. beq $8, $6, L1
  18. nop
  19. fail
  20. L1:
  21. #TODO: More tests?
  22. pass
  23. .end DIAG