Add Comprehensive Vector Unary Operation Test Suite#8172
Open
ehsankianifar wants to merge 1 commit into
Open
Conversation
371ad04 to
078989a
Compare
Contributor
Author
|
@gita-omr @hzongaro @r30shah Could you please review this test suite? |
Introduces VectorUnaryTest.cpp, a parameterized test suite for vector unary operations in the compiler's Tril test framework. Covers six vector operations (vabs, vneg, vnot, vpopcnt, vnolz, vnotz) across multiple data types (int8_t, int16_t, int32_t, int64_t, float, double) and vector lengths (128-bit and 256-bit on x86). Tests validate compiled code against reference implementations with comprehensive edge case coverage including min/max values, zero, infinity, NaN, and denormalized numbers. signed-off-by: Ehsan Kiani Far <ehsan.kianifar@gmail.com>
078989a to
323227d
Compare
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.
Summary
This PR introduces a new comprehensive test suite (
VectorUnaryTest.cpp) for vector unary operations in the OMR compiler's Tril test framework. The test suite provides parameterized testing for six vector operations across multiple data types and vector lengths.What's New
Tested Vector Operations
vabs- Vector absolute value (all types)vneg- Vector negation (all types)vnot- Vector bitwise NOT/complement (integral types only)vpopcnt- Vector population count (integral types only)vnolz- Vector number of leading zeros (integral types only)vnotz- Vector number of trailing zeros (integral types only)Test Coverage
int8_t,int16_t,int32_t,int64_t,float,doubleImplementation Details
Key Features
Architecture
makeDelegate,generateTestTree,getTestSourceData) provide reusable test infrastructureThis comprehensive test suite ensures correctness of vector unary operations across the OMR compiler's supported platforms and data types.