Skip to content

Commit

Permalink
AArch64: Implement vector masked reduction evaluators
Browse files Browse the repository at this point in the history
Refactor vector reduction operation evaluators to use
a common helper function to reduce boilerplate code.
Implement vector masked reduction operation evaluators
using the same approach as non-masked ones.

Signed-off-by: Akira Saitoh <[email protected]>
  • Loading branch information
Akira Saitoh committed Oct 21, 2022
1 parent a0d15d2 commit 8bea295
Show file tree
Hide file tree
Showing 2 changed files with 657 additions and 237 deletions.
7 changes: 7 additions & 0 deletions compiler/aarch64/codegen/OMRCodeGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -651,9 +651,13 @@ bool OMR::ARM64::CodeGenerator::getSupportsOpCodeForAutoSIMD(TR::CPU *cpu, TR::I
case TR::vmin:
case TR::vmax:
case TR::vreductionAdd:
case TR::vmreductionAdd:
case TR::vreductionMul:
case TR::vmreductionMul:
case TR::vreductionMax:
case TR::vmreductionMax:
case TR::vreductionMin:
case TR::vmreductionMin:
case TR::vmadd:
case TR::vmsub:
case TR::vmmul:
Expand All @@ -674,8 +678,11 @@ bool OMR::ARM64::CodeGenerator::getSupportsOpCodeForAutoSIMD(TR::CPU *cpu, TR::I
case TR::vxor:
case TR::vnot:
case TR::vreductionAnd:
case TR::vmreductionAnd:
case TR::vreductionOr:
case TR::vmreductionOr:
case TR::vreductionXor:
case TR::vmreductionXor:
case TR::vbitselect:
case TR::vmand:
case TR::vmor:
Expand Down
Loading

0 comments on commit 8bea295

Please sign in to comment.