Skip to content

Commit

Permalink
AArch64: Int32 Support for Vector Multiplication
Browse files Browse the repository at this point in the history
This commit accommodates Int32 support for vector multiplication
operations.

Signed-off-by: Md. Alvee Noor <mnoor@unb.ca>
  • Loading branch information
alvee-unb committed Jun 16, 2021
1 parent ea6ff48 commit 9b9f82d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions compiler/aarch64/codegen/ARM64Debug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -743,6 +743,7 @@ static const char *opCodeToNameMap[] =
"vfsub2d",
"vmul16b",
"vmul8h",
"vmul4s",
"vfmul4s",
"vfmul2d",
"vfdiv4s",
Expand Down
3 changes: 3 additions & 0 deletions compiler/aarch64/codegen/BinaryEvaluator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,9 @@ OMR::ARM64::TreeEvaluator::vmulEvaluator(TR::Node *node, TR::CodeGenerator *cg)
case TR::VectorInt16:
mulOp = TR::InstOpCode::vmul8h;
break;
case TR::VectorInt32:
mulOp = TR::InstOpCode::vmul4s;
break;
case TR::VectorFloat:
mulOp = TR::InstOpCode::vfmul4s;
break;
Expand Down
1 change: 1 addition & 0 deletions compiler/aarch64/codegen/OMRInstOpCode.enum
Original file line number Diff line number Diff line change
Expand Up @@ -721,6 +721,7 @@
vfsub2d, /* 0x4EE0D400 FSUB */
vmul16b, /* 0x4E209C00 MUL */
vmul8h, /* 0x4E609C00 MUL */
vmul4s, /* 0x4EA09C00 MUL */
vfmul4s, /* 0x6E20DC00 FMUL */
vfmul2d, /* 0x6E60DC00 FMUL */
vfdiv4s, /* 0x6E20FC00 FDIV */
Expand Down
1 change: 1 addition & 0 deletions compiler/aarch64/codegen/OpBinary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -727,6 +727,7 @@ const OMR::ARM64::InstOpCode::OpCodeBinaryEntry OMR::ARM64::InstOpCode::binaryEn
0x4EE0D400, /* FSUB vfsub2d */
0x4E209C00, /* MUL vmul16b */
0x4E609C00, /* MUL vmul8h */
0x4EA09C00, /* MUL vmul4s */
0x6E20DC00, /* FMUL vfmul4s */
0x6E60DC00, /* FMUL vfmul2d */
0x6E20FC00, /* FDIV vfdiv4s */
Expand Down

0 comments on commit 9b9f82d

Please sign in to comment.