vector updates with clang formatting

This commit is contained in:
tinebp 2024-12-05 15:55:57 -08:00
parent 6b23d290c3
commit 6bbcd4ebaf
5 changed files with 3466 additions and 3227 deletions

View file

@ -148,9 +148,10 @@ static inline uint64_t rsqrte7(uint64_t val, int e, int s, bool sub) {
59, 58, 57, 56, 56, 55, 54, 53};
if (sub) {
while (extract64(sig, s - 1, 1) == 0)
exp--, sig <<= 1;
while (extract64(sig, s - 1, 1) == 0) {
exp--;
sig <<= 1;
}
sig = (sig << 1) & make_mask64(0, s);
}
@ -165,7 +166,8 @@ float16_t f16_rsqrte7(float16_t in) {
union ui16_f16 uA;
uA.f = in;
unsigned bool sub = false;
unsigned int ret = f16_classify(in);
bool sub = false;
switch (ret) {
case 0x001: // -inf
case 0x002: // -normal

View file

@ -45,7 +45,7 @@ void Emulator::warp_t::clear(uint64_t startup_addr) {
this->vtype = {0, 0, 0, 0, 0};
this->vl = 0;
this->VLMAX = 0;
this->vlmax = 0;
for (auto& reg_file : this->ireg_file) {
for (auto& reg : reg_file) {

View file

@ -114,7 +114,7 @@ private:
Byte fcsr;
vtype_t vtype;
uint32_t vl;
Word VLMAX;
Word vlmax;
uint32_t uuid;
};

File diff suppressed because it is too large Load diff

View file

@ -226,8 +226,7 @@ public:
uint32_t getVs3() const { return vs3_; }
bool hasZimm() const { return has_zimm_; }
uint32_t getVlmul() const { return vlmul_; }
uint32_t getVsew() const { return 1 << (3 + vsew_); }
uint32_t getVsewO() const { return vsew_; }
uint32_t getVsew() const { return vsew_; }
uint32_t getVta() const { return vta_; }
uint32_t getVma() const { return vma_; }
uint32_t getVediv() const { return vediv_; }