Add common parts for vextublx class extract instructions for P9. - #228
Open
munroesj52 wants to merge 1 commit into
Open
Add common parts for vextublx class extract instructions for P9.#228munroesj52 wants to merge 1 commit into
munroesj52 wants to merge 1 commit into
Conversation
Add common operations for the Vector Extract Unsigned <element> to GPR using GPR-specified Left/Right-Index class instructions. These implement the ISA equivalent operations without PVIPR bi-endian transforms imposed by the vec_extract intrinsic. These can then be used to implement the equivalent bi-endian vec_extract operations for __ARCH_PWR7/8 not supported by compilers. Or other cases where the raw ISA operation is needed (without PVIPR transforms). * src/pveclib/vec_common_ppc.h - (vec_vextublx_PWR7, vec_vextublx_PWR9): New common operations for vextublx. - (vec_vextubrx_PWR7, vec_vextubrx_PWR9): New common operations for vextubrx. - (vec_vextuhlx_PWR7, vec_vextuhlx_PWR9): New common operations for vextuhlx. - (vec_vextuhrx_PWR7, vec_vextuhrx_PWR9): New common operations for vextuhrx. - (vec_vextuwlx_PWR7, vec_vextuwlx_PWR9): New common operations for vextuwlx. - (vec_vextuwrx_PWR7, vec_vextuwrx_PWR9): New common operations for vextuwrx. * src/testsuite/arith128_test_char.c (test_vextub_indexed): New functional test for vextublx/vextubrx. - (test_vextuh_indexed): New functional test for vextuhlx/vextuhrx. - (test_vextuw_indexed): New functional test for vextuwlx/vextuwrx. - (test_vec_char): Add functional tests to test driver. * src/testsuite/vec_char_dummy.c (test_mfvsrwz, test_mfvrd): Compile tests for mfvsrwr and mfvrd. - (test_vec_vextublx, test_vec_vextubrx): Common operation compile tests. - (test_vec_vextuhlx, test_vec_vextuhrx): Common operation compile tests. - (test_vec_vextuwlx, test_vec_vextuwrx): Common operation compile tests. - (test_vextublx_V0, test_vextuhlx_V0, test_vextublx_V0): Implementation compile tests. - (test_vextubrx_V0, test_vextuhrx_V0, test_vextubrx_V0): Implementation compile tests. * src/testsuite/vec_pwr9_dummy.c - (test_vec_vextublx_PWR9, test_vec_vextubrx_PWR9): Common operation compile tests. - (test_vec_vextuhlx_PWR9, test_vec_vextuhrx_PWR9): Common operation compile tests. - (test_vec_vextuwlx_PWR9, test_vec_vextuwrx_PWR9): Common operation compile tests. Signed-off-by: Steven Munroe <munroesj52@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add common operations for the
Vector Extract Unsigned to GPR using GPR-specified Left/Right-Index class instructions.
These implement the ISA equivalent operations without PVIPR bi-endian transforms imposed by the vec_extract intrinsic.
These can then be used to implement the equivalent bi-endian vec_extract operations for __ARCH_PWR7/8 not supported by compilers. Or other cases where the raw ISA operation is needed (without PVIPR transforms).