Skip to content

Commit

Permalink
[Clang][XTHeadVector] test 12.11 vwmul/vwmulu/vwmulsu
Browse files Browse the repository at this point in the history
  • Loading branch information
imkiva committed Mar 19, 2024
1 parent 5b97df1 commit 905a6a6
Show file tree
Hide file tree
Showing 4 changed files with 1,107 additions and 4 deletions.
10 changes: 6 additions & 4 deletions clang/include/clang/Basic/riscv_vector_xtheadv.td
Original file line number Diff line number Diff line change
Expand Up @@ -1088,14 +1088,16 @@ let MaskedPolicyScheme = HasPassthruOperand,
}

// 12.11. Vector Widening Integer Multiply Operations
let Log2LMUL = [-3, -2, -1, 0, 1, 2], UnMaskedPolicyScheme = HasPassthruOperand in {
defm th_vwmul : RVVOutOp0Op1BuiltinSet<"vwmul", "csi",
let Log2LMUL = [-3, -2, -1, 0, 1, 2],
MaskedPolicyScheme = HasPassthruOperand,
UnMaskedPolicyScheme = HasPassthruOperand in {
defm th_vwmul : RVVOutOp0Op1BuiltinSet<"th_vwmul", "csi",
[["vv", "w", "wvv"],
["vx", "w", "wve"]]>;
defm th_vwmulu : RVVOutOp0Op1BuiltinSet<"vwmulu", "csi",
defm th_vwmulu : RVVOutOp0Op1BuiltinSet<"th_vwmulu", "csi",
[["vv", "Uw", "UwUvUv"],
["vx", "Uw", "UwUvUe"]]>;
defm th_vwmulsu : RVVOutOp0Op1BuiltinSet<"vwmulsu", "csi",
defm th_vwmulsu : RVVOutOp0Op1BuiltinSet<"th_vwmulsu", "csi",
[["vv", "w", "wvUv"],
["vx", "w", "wvUe"]]>;
}
Expand Down
Loading

0 comments on commit 905a6a6

Please sign in to comment.