Giter Site home page Giter Site logo

ISA Zfinx extension about neorv32 HOT 8 CLOSED

Snorny avatar Snorny commented on May 18, 2024
ISA Zfinx extension

from neorv32.

Comments (8)

GideonZ avatar GideonZ commented on May 18, 2024

from neorv32.

Snorny avatar Snorny commented on May 18, 2024

It seems that the operations are the same, so I deduce that I haven't activated the zfinx extension properly.

from neorv32.

stnolting avatar stnolting commented on May 18, 2024

You need to check first if your toolchain actually supports the Zfinx extension. I think support has been added with GCC version 12.something?!

Anyway, you can also "force" the compiler to infer Zfinx instructions using the provided intrinsics library. This is also possible even if the toolchain does not support Zfinx yet.

from neorv32.

Snorny avatar Snorny commented on May 18, 2024

You need to check first if your toolchain actually supports the Zfinx extension. I think support has been added with GCC version 12.something?!

Anyway, you can also "force" the compiler to infer Zfinx instructions using the provided intrinsics library. This is also possible even if the toolchain does not support Zfinx yet.

Thanks for those precision, how can i know if the toolchain support it ?

from neorv32.

stnolting avatar stnolting commented on May 18, 2024

Good question 😅

Unfortunately, it is quite hard to make GCC emit a list off all supported Z* sub-extensions... Better compare your version of GCC/binutils with the official release lists.

Or just try to compile a simple floating-point program with Zfinx in the march string and scan the resulting assembly code for any floating point instructions.

from neorv32.

Snorny avatar Snorny commented on May 18, 2024

I've tried looking, but it seems that my toolchain can't use the Zfinx extension, I'm working with RTEMS and the riscv-rtems6-gcc toolchain. I don't know if this is possible, but I need an answer and another opinion on my conclusion.

Other question, does the riscv32-unknown-elf-gcc can use this extension ?

from neorv32.

stnolting avatar stnolting commented on May 18, 2024

Other question, does the riscv32-unknown-elf-gcc can use this extension ?

No, not yet.

According to this list https://gcc.gnu.org/gcc-13/changes.html support for the Zfinx was introduced this year with GCC 13.

However, you can still utilize this extension with older GCC versions by using intrinsics.

from neorv32.

Snorny avatar Snorny commented on May 18, 2024

Thanks a lot for your help !

However, you can still utilize this extension with older GCC versions by using intrins

Yeah thanks for this precision ! It could be helpful.

from neorv32.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.