Skip to content

Commit

Permalink
[herd,SVE] Fix non-scatter store value register reading
Browse files Browse the repository at this point in the history
  • Loading branch information
crvdgc committed Oct 4, 2024
1 parent 33eff01 commit e274644
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion herd/AArch64Sem.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2899,9 +2899,13 @@ module Make
let<>= base = ma in
let>= pred = read_reg_predicate false p ii in
let ops i r =
let<>= v =
any_active p pred psize nelem ii
(read_reg_scalable true r ii)
mzero
in
let op idx =
let store =
let>= v = read_reg_scalable true r ii in
let offset = (idx * nregs + i) * MachSize.nbytes sz in
let>= addr = M.op1 (Op.AddK offset) base
and* v = scalable_getlane v idx esize >>= demote in
Expand Down

0 comments on commit e274644

Please sign in to comment.