Skip to content

Commit

Permalink
Merge pull request #11 from danielschloms/zve32x-integer-arithmetic
Browse files Browse the repository at this point in the history
Implement Zve32x Vector Integer Arithmetic Instructions
  • Loading branch information
PhilippvK authored Oct 30, 2024
2 parents 748985e + 732231e commit 8b218e3
Show file tree
Hide file tree
Showing 23 changed files with 16,963 additions and 11,545 deletions.
21 changes: 21 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# see http://clang.llvm.org/docs/ClangFormatStyleOptions.html
# BasedOnStyle: LLVM

AccessModifierOffset: -2
AlignEscapedNewlines: Left
AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: false
AlwaysBreakTemplateDeclarations: true
BreakBeforeBraces: Allman
BreakConstructorInitializersBeforeComma: true
ColumnLimit: 120
ConstructorInitializerAllOnOneLineOrOnePerLine: true
Cpp11BracedListStyle: false
IndentCaseLabels: false
IndentWidth: 4
KeepEmptyLinesAtTheStartOfBlocks: true
MaxEmptyLinesToKeep: 1
PenaltyReturnTypeOnItsOwnLine: 10000
PointerBindsToType: false
SortIncludes: false
UseTab: Never
18 changes: 10 additions & 8 deletions include/target/riscv/arithmetic/fixedpoint.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
*/
//////////////////////////////////////////////////////////////////////////////////////
/// \file fixedpoint.hpp
/// \brief Defines helpers implementing fixed-point arithmetics after https://github.com/riscv/riscv-v-spec/blob/0.9/v-spec.adoc#vector-arithmetic-instruction-formats
/// \brief Defines helpers implementing fixed-point arithmetics after
/// https://github.com/riscv/riscv-v-spec/blob/0.9/v-spec.adoc#vector-arithmetic-instruction-formats
/// \date 09/09/2020
//////////////////////////////////////////////////////////////////////////////////////

Expand All @@ -27,18 +28,19 @@

//////////////////////////////////////////////////////////////////////////////////////
/// \brief This space concludes fixed-point arithmetic helpers
namespace VARITH_FIXP {
namespace VARITH_FIXP
{

/* rvv spec. 13.1 - Vector Single-Width Saturating Add and Substract */
//TODO: ...
// TODO: ...
/* rvv spec. 13.2 - Vector Single-Width Averaging Add and Substract */
//TODO: ...
// TODO: ...
/* rvv spec. 13.3 - Vector Single-Width Fractional Multiply with Rounding and Saturation */
//TODO: ...
// TODO: ...
/* rvv spec. 13.4 - Vector Single-Width Scaling Shift Instructions */
//TODO: ...
// TODO: ...
/* rvv spec. 13.5 - Vector Narrowing Fixed-Point Clip Instructions */
//TODO: ...
// TODO: ...

}
} // namespace VARITH_FIXP
#endif /* __RVVHL_ARITH_FIXEDPOINT_H__ */
42 changes: 22 additions & 20 deletions include/target/riscv/arithmetic/floatingpoint.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
*/
//////////////////////////////////////////////////////////////////////////////////////
/// \file floatingpoint.hpp
/// \brief Defines helpers implementing floating-point arithmetics after https://github.com/riscv/riscv-v-spec/blob/0.9/v-spec.adoc#vector-arithmetic-instruction-formats
/// \brief Defines helpers implementing floating-point arithmetics after
/// https://github.com/riscv/riscv-v-spec/blob/0.9/v-spec.adoc#vector-arithmetic-instruction-formats
/// \date 09/09/2020
//////////////////////////////////////////////////////////////////////////////////////

Expand All @@ -27,41 +28,42 @@

//////////////////////////////////////////////////////////////////////////////////////
/// \brief This space concludes floating-point arithmetic helpers
namespace VARITH_FP {
namespace VARITH_FP
{
/* rvv spec. 14.1. Vector Floating-Point Exception Flags */
//TODO: ...
// TODO: ...
/* rvv spec. 14.2. Vector Single-Width Floating-Point Add/Subtract Instructions */
//TODO: ...
// TODO: ...
/* rvv spec. 14.3. Vector Widening Floating-Point Add/Subtract Instructions */
//TODO: ...
// TODO: ...
/* rvv spec. 14.4. Vector Single-Width Floating-Point Multiply/Divide Instructions */
//TODO: ...
// TODO: ...
/* rvv spec. 14.5. Vector Widening Floating-Point Multiply */
//TODO: ...
// TODO: ...
/* rvv spec. 14.6. Vector Single-Width Floating-Point Fused Multiply-Add Instructions */
//TODO: ...
// TODO: ...
/* rvv spec. 14.7. Vector Widening Floating-Point Fused Multiply-Add Instructions */
//TODO: ...
// TODO: ...
/* rvv spec. 14.8. Vector Floating-Point Square-Root Instruction */
//TODO: ...
// TODO: ...
/* rvv spec. 14.9. Vector Floating-Point MIN/MAX Instructions */
//TODO: ...
// TODO: ...
/* rvv spec. 14.10. Vector Floating-Point Sign-Injection Instructions */
//TODO: ...
// TODO: ...
/* rvv spec. 14.11. Vector Floating-Point Compare Instructions */
//TODO: ...
// TODO: ...
/* rvv spec. 14.12. Vector Floating-Point Classify Instruction */
//TODO: ...
// TODO: ...
/* rvv spec. 14.13. Vector Floating-Point Merge Instruction */
//TODO: ...
// TODO: ...
/* rvv spec. 14.14. Vector Floating-Point Move Instruction */
//TODO: ...
// TODO: ...
/* rvv spec. 14.15. Single-Width Floating-Point/Integer Type-Convert Instructions */
//TODO: ...
// TODO: ...
/* rvv spec. 14.16. Widening Floating-Point/Integer Type-Convert Instructions */
//TODO: ...
// TODO: ...
/* rvv spec. 14.17. Narrowing Floating-Point/Integer Type-Convert Instructions */
//TODO: ...
// TODO: ...

}
} // namespace VARITH_FP
#endif /* __RVVHL_ARITH_FLOATINGPOINT_H__ */
Loading

0 comments on commit 8b218e3

Please sign in to comment.