Skip to content

Commit

Permalink
riscv64: Add vector mask note
Browse files Browse the repository at this point in the history
  • Loading branch information
afonso360 committed May 20, 2023
1 parent 1e40013 commit a5952ba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cranelift/codegen/src/isa/riscv64/inst_vector.isle
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,9 @@


;; Build a vector mask from a u64
;; TODO: We should merge this with the `vconst` rules, and take advantage of
;; the other existing `vconst` rules. One example is using `vmv.v.i` which
;; can represent some of these masks.
(decl gen_vec_mask (u64) Reg)

;; Materialize the mask into an X register, and move it into the bottom of
Expand Down

0 comments on commit a5952ba

Please sign in to comment.