1. Apr 27, 2023
  2. Mar 30, 2023
  3. Mar 29, 2023
  4. Jan 31, 2023
  5. Feb 11, 2022
    • Kito Cheng's avatar
      Merge pull request #21 from kito-cheng/v-ext-marco · aec3c3bd
      Kito Cheng authored
      Add misc macro for vector extensions.
      aec3c3bd
    • Kito Cheng's avatar
      Add misc macro for vector extensions. · 2a3b3a89
      Kito Cheng authored
      Introduce `__riscv_min_vlen`, `__riscv_v_elen` and `__riscv_v_elen_fp`
      macro, for let programer easier to get vector related information, like:
      
      - What's the minimal VLEN value is guaranteed current architecture
        extension?
      - What's the maximal available ELEN is guaranteed current
        architecture extension?
      - What's the maximal available ELEN for floating-point operation is
        guaranteed current architecture extension?
      
      It's possible to get the information by testing serveral architecture extension
      test macro, but the life can be simpler if toolchain can help, for
      example, if you want to check the minimal VLEN value via those macro:
      
      ```c
       #if defined(__riscv_zvl512b)
         #define __riscv_min_vlen 512
       #elif defined(__riscv_zvl256b)
         #define __riscv_min_vlen 256
       #elif defined(__riscv_zvl128b) || defined(__riscv_v)
         #define __riscv_min_vlen 128
       #elif defined(__riscv_zvl64b) || defined(__riscv_zve64x) || \
             defined(__riscv_zve64f) || defined(__riscv_zve64d)
         #define __riscv_min_vlen 64
       #elif defined(__riscv_zvl32b) || defined(__riscv_zve32x) || \
             defined(__riscv_zve32f)
         #define __riscv_min_vlen 32
       #endif
      
      ```
      
      And it's not scalable solution since in theory we can have up to zvl32768b.
      2a3b3a89
    • Kito Cheng's avatar
      Merge pull request #22 from eopXD/add-vector-macro · 7005920f
      Kito Cheng authored
      Add __riscv_vector back from deprecated
      7005920f
  6. Feb 09, 2022
  7. Jan 19, 2022
  8. Jun 07, 2021
  9. Feb 03, 2021
  10. Jan 11, 2021
  11. Dec 18, 2020
  12. Dec 03, 2020
  13. Dec 02, 2020
  14. Nov 16, 2020
  15. Nov 10, 2020
    • Kito Cheng's avatar
      Introduce new scheme of extension related predefined macro · 4e6304d8
      Kito Cheng authored
      The motivation of this scheme is have an unify naming scheme for
      extension macro and add the capability to checking version.
      
      The new naming scheme is `__riscv_<extension name>`, and it will define
      the value to `<MAJOR_VERSION> * 1,000,000 + <MINOR_VERSION> * 1,000 + <REVISION_VERSION>`
      
      For example:
       - F-extension v2.2 will define `__riscv_f` as `2002000`.
       - B-extension v0.92 will define `__riscv_b` as `92000`.
      
      We also introduce a new macro `__riscv_arch_test_marco` to check this
      test marco set is available.
      4e6304d8
  16. Sep 25, 2020
  17. Sep 04, 2020
  18. Sep 03, 2020
  19. Sep 02, 2020
  20. Aug 25, 2020
  21. Aug 17, 2020
  22. Jul 08, 2019
  23. Jun 19, 2019
  24. Oct 04, 2018
  25. Sep 26, 2018
  26. Sep 03, 2018
  27. Jun 09, 2018
  28. Jun 08, 2018