Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

release / riscv-demo

  • 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
  • riscv-demo
  • simple
  • tests
  • double
  • double_asm2.c
  • Martin's avatar
    Release 2022.1 · a22edae1
    Martin committed Sep 07, 2022
    a22edae1 Browse Files
double_asm2.c 195 Bytes
BlameHistoryPermalink
Edit
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
////C: '-msoft-fp-single'

int main(void)
{
  volatile double a,b,z;

  asm("fadd.d	%0,%1,%2" : "=f"(z) : "f"(a),"f"(b));

  asm("fmul.d	%0,%1,%2" : "=f"(z) : "If"(a),"If"(b));

  return 0;
}