Skip to content

Commit

Permalink
[Clang][XTHeadVector] implement 12.10 vdivu/vdiv/vrem/vremu (llvm#81)
Browse files Browse the repository at this point in the history
* [Clang][XTHeadVector] implement 12.10 `vdivu/vdiv/vrem/vremu`

* [Clang][XTHeadVector] test 12.10 `vdivu/vdiv/vrem/vremu`
  • Loading branch information
imkiva authored and RevySR committed Apr 3, 2024
1 parent 8aafd2c commit cbe0563
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 @@ -1079,6 +1079,13 @@ let MaskedPolicyScheme = HasPassthruOperand,
}

// 12.10. Vector Integer Divide Operations
let MaskedPolicyScheme = HasPassthruOperand,
UnMaskedPolicyScheme = HasPassthruOperand in {
defm th_vdivu : RVVUnsignedBinBuiltinSet;
defm th_vdiv : RVVSignedBinBuiltinSet;
defm th_vremu : RVVUnsignedBinBuiltinSet;
defm th_vrem : RVVSignedBinBuiltinSet;
}

// 12.11. Vector Widening Integer Multiply Operations

Expand Down
Loading

0 comments on commit cbe0563

Please sign in to comment.