Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

Martin / daiteq-binutils

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • daiteq-binutils
  • tests
  • sparc
  • test_fp_double.s
  • Martin's avatar
    daiteq binutils for SPARCv8 and RISC-V targets, incl. new FPU and SWAR instructions · b4cf8b87
    Martin committed Mar 28, 2022
    b4cf8b87
test_fp_double.s 409 Bytes
BlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

# Test SPARC old FPU instructions for double precision

  .text

#  fmovd     %f0, %f1
#  fnegd     %f0, %f1
#  fabsd     %f0, %f1
  faddd     %f0, %f2, %f4
  fsubd     %f0, %f2, %f4
  fmuld     %f0, %f2, %f4
  fdivd     %f0, %f2, %f4
  fsqrtd    %f0, %f2
  fsmuld    %f0, %f1, %f2
  fdtoi     %f0, %f2
  fitod     %f0, %f2
  fstod     %f0, %f2
  fdtos     %f2, %f0
  fcmpd     %f0, %f2
  fcmped    %f0, %f2