ftino.cgs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # frv testcase for ftino
  2. # mach: all
  3. .include "testutils.inc"
  4. start
  5. .global ftinev
  6. ftinev:
  7. and_spr_immed -4081,tbr ; clear tbr.tt
  8. set_gr_spr tbr,gr7
  9. inc_gr_immed 2112,gr7 ; address of exception handler
  10. set_mem_limmed 0x0038,0x2000,gr7 ; bctrlr 0,0
  11. set_spr_immed 128,lcr
  12. set_spr_addr bad,lr
  13. set_gr_immed 0,gr7
  14. set_fcc 0x0 0
  15. ftino ; should branch to tbr + (128 + 4)*16
  16. set_fcc 0x1 0
  17. ftino ; should branch to tbr + (128 + 4)*16
  18. set_fcc 0x2 0
  19. ftino ; should branch to tbr + (128 + 4)*16
  20. set_fcc 0x3 0
  21. ftino ; should branch to tbr + (128 + 4)*16
  22. set_fcc 0x4 0
  23. ftino ; should branch to tbr + (128 + 4)*16
  24. set_fcc 0x5 0
  25. ftino ; should branch to tbr + (128 + 4)*16
  26. set_fcc 0x6 0
  27. ftino ; should branch to tbr + (128 + 4)*16
  28. set_fcc 0x7 0
  29. ftino ; should branch to tbr + (128 + 4)*16
  30. set_fcc 0x8 0
  31. ftino ; should branch to tbr + (128 + 4)*16
  32. set_fcc 0x9 0
  33. ftino ; should branch to tbr + (128 + 4)*16
  34. set_fcc 0xa 0
  35. ftino ; should branch to tbr + (128 + 4)*16
  36. set_fcc 0xb 0
  37. ftino ; should branch to tbr + (128 + 4)*16
  38. set_fcc 0xc 0
  39. ftino ; should branch to tbr + (128 + 4)*16
  40. set_fcc 0xd 0
  41. ftino ; should branch to tbr + (128 + 4)*16
  42. set_fcc 0xe 0
  43. ftino ; should branch to tbr + (128 + 4)*16
  44. set_fcc 0xf 0
  45. ftino ; should branch to tbr + (128 + 4)*16
  46. pass
  47. bad:
  48. fail