From 246d39ab47748e81262955290a319a17027ad307 Mon Sep 17 00:00:00 2001 From: Finn Wilkinson Date: Fri, 20 Dec 2024 11:06:10 +0000 Subject: [PATCH] CI CD fixes. --- src/include/simeng/arch/aarch64/Instruction.hh | 4 ++-- src/include/simeng/arch/aarch64/helpers/sve.hh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/include/simeng/arch/aarch64/Instruction.hh b/src/include/simeng/arch/aarch64/Instruction.hh index b1ffb9757..6cbc0c290 100644 --- a/src/include/simeng/arch/aarch64/Instruction.hh +++ b/src/include/simeng/arch/aarch64/Instruction.hh @@ -300,14 +300,14 @@ std::vector> predAsCounterToMasks( static_cast(std::log2f(sizeof(T)) + 1); for (int r = 0; r < V; r++) { - for (int i = 0; i < elemsPerVec; i++) { + for (uint16_t 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 = 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) { + if (static_cast(r * elemsPerVec) + i < predElemCount) { out[r][i / (64 / sizeof(T))] |= (invert) ? 0 : shifted_active; } else { out[r][i / (64 / sizeof(T))] |= (invert) ? shifted_active : 0; diff --git a/src/include/simeng/arch/aarch64/helpers/sve.hh b/src/include/simeng/arch/aarch64/helpers/sve.hh index a42bd9680..cf9ffd568 100644 --- a/src/include/simeng/arch/aarch64/helpers/sve.hh +++ b/src/include/simeng/arch/aarch64/helpers/sve.hh @@ -1636,7 +1636,7 @@ RegisterValue sveUdot( const N* zm = sourceValues[2].getAsVector(); D out[256 / sizeof(D)] = {0}; - for (int i = 0; i < (VL_bits / (sizeof(D) * 8)); i++) { + for (size_t i = 0; i < (VL_bits / (sizeof(D) * 8)); i++) { out[i] = zd[i]; for (int j = 0; j < W; j++) { out[i] += @@ -1666,7 +1666,7 @@ RegisterValue sveUdot_indexed( const int index = metadata.operands[2].vector_index; D out[256 / sizeof(D)] = {0}; - for (int i = 0; i < (VL_bits / (sizeof(D) * 8)); i++) { + for (size_t i = 0; i < (VL_bits / (sizeof(D) * 8)); i++) { D acc = zd[i]; // Index into zm selects which D-type element within each 128-bit vector // segment to use