Skip to content

Commit

Permalink
[Clang][XTHeadVector] implement 12.9 vmul/vmulh/vmulhu/vmulhsu (llvm#80)
Browse files Browse the repository at this point in the history
* [Clang][XTHeadVector] implement 12.9 `vmul/vmulh/vmulhu/vmulhsu`

* [Clang][XTHeadVector] test 12.9 `vmul/vmulh/vmulhu/vmulhsu`
  • Loading branch information
imkiva authored and RevySR committed Apr 3, 2024
1 parent 7d7bbc3 commit 3cbf36a
Show file tree
Hide file tree
Showing 5 changed files with 3,236 additions and 0 deletions.
9 changes: 9 additions & 0 deletions clang/include/clang/Basic/riscv_vector_xtheadv.td
Original file line number Diff line number Diff line change
Expand Up @@ -1041,6 +1041,15 @@ let MaskedPolicyScheme = HasPassthruOperand,
}

// 12.9. Vector Single-Width Integer Multiply Operations
let MaskedPolicyScheme = HasPassthruOperand,
UnMaskedPolicyScheme = HasPassthruOperand in {
defm th_vmul : RVVIntBinBuiltinSet;
defm th_vmulh : RVVSignedBinBuiltinSet;
defm th_vmulhu : RVVUnsignedBinBuiltinSet;
defm th_vmulhsu : RVVOutOp1BuiltinSet<"th_vmulhsu", "csil",
[["vv", "v", "vvUv"],
["vx", "v", "vvUe"]]>;
}

// 12.10. Vector Integer Divide Operations

Expand Down
Loading

0 comments on commit 3cbf36a

Please sign in to comment.