Skip to content

Commit

Permalink
Attended PR comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
FinnWilkinson committed Dec 10, 2024
1 parent 48d93a1 commit 5ff6446
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,7 @@ if(SIMENG_ENABLE_TESTS)
# Print message containing if the full test suite will run
if (${LLVM_PACKAGE_VERSION} VERSION_LESS "14.0")
message(STATUS "LLVM version does not support AArch64 extensions SVE2, SVE2.1, SME, or SME2. Related tests will fail.")
endif()
if (${LLVM_PACKAGE_VERSION} VERSION_LESS "18.0")
elseif (${LLVM_PACKAGE_VERSION} VERSION_LESS "18.0")
message(STATUS "LLVM version does not support AArch64 extensions SME2 or SVE2.1. Related test will fail.")
endif()

Expand Down
7 changes: 4 additions & 3 deletions src/include/simeng/arch/aarch64/Instruction.hh
Original file line number Diff line number Diff line change
Expand Up @@ -306,9 +306,10 @@ std::vector<std::array<uint64_t, 4>> predAsCounterToMasks(
for (int i = 0; i < elemsPerVec; i++) {
// Move bit to next position based on element type
uint64_t shifted_active = 1ull << ((i % (64 / sizeof(T))) * sizeof(T));
// If invert = 1, predElemCount dictates number of initial inactive
// elements.
// If invert = 0, it is number of initial active elements.
// If invert = True (invert bit = 1), predElemCount dictates number of
// initial inactive elements.
// If invert = False (invert bit = 0), it indicates the number of initial
// active elements.
if ((r * elemsPerVec) + i < predElemCount) {
out[r][i / (64 / sizeof(T))] |= (invert) ? 0 : shifted_active;
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/include/simeng/arch/aarch64/helpers/sve.hh
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ std::enable_if_t<std::is_floating_point_v<T>, RegisterValue> sveFDivPredicated(
return {out, 256};
}

/** Helpfer function for SVE instructions with the format `faddv rd, pg, zn.
/** Helper function for SVE instructions with the format `faddv rd, pg, zn.
* D represents the source vector element type and the destination scalar
* register type (i.e. for zn.s and sd, D = float).
* Returns correctly formatted RegisterValue. */
Expand Down

0 comments on commit 5ff6446

Please sign in to comment.