Skip to content

Commit

Permalink
[Clang][XTHeadVector] implement 12.8 vmin/vmax (llvm#79)
Browse files Browse the repository at this point in the history
* [Clang][XTHeadVector] implement 12.8 `vmin/vmax`

* [Clang][XTHeadVector] test 12.8 `vmin/vmax`
  • Loading branch information
imkiva authored and RevySR committed Apr 3, 2024
1 parent cab2ebe commit 7d7bbc3
Show file tree
Hide file tree
Showing 5 changed files with 2,595 additions and 0 deletions.
7 changes: 7 additions & 0 deletions clang/include/clang/Basic/riscv_vector_xtheadv.td
Original file line number Diff line number Diff line change
Expand Up @@ -1032,6 +1032,13 @@ let UnMaskedPolicyScheme = HasPassthruOperand in {
// 12.7. Vector Integer Comparison Operations

// 12.8. Vector Integer Min/Max Operations
let MaskedPolicyScheme = HasPassthruOperand,
UnMaskedPolicyScheme = HasPassthruOperand in {
defm th_vminu : RVVUnsignedBinBuiltinSet;
defm th_vmin : RVVSignedBinBuiltinSet;
defm th_vmaxu : RVVUnsignedBinBuiltinSet;
defm th_vmax : RVVSignedBinBuiltinSet;
}

// 12.9. Vector Single-Width Integer Multiply Operations

Expand Down
Loading

0 comments on commit 7d7bbc3

Please sign in to comment.