Skip to content

Comments

Added tests for validating LPM byte alignment when bitwidth not divisible by 8#627

Open
shweta503 wants to merge 3 commits intop4lang:mainfrom
shweta503:lpm_non_byte_aligned_tests
Open

Added tests for validating LPM byte alignment when bitwidth not divisible by 8#627
shweta503 wants to merge 3 commits intop4lang:mainfrom
shweta503:lpm_non_byte_aligned_tests

Conversation

@shweta503
Copy link

This commit adds test cases to test byte alignment when LPM bitwidth is not divisible by 8 (so far the repo only had tests for cases when bitwidth is divisible by 8). Adding these tests revealed a bug which caused these test cases to fail because expected number of trailing zeros (as per current expectations by PI) was calculated incorrectly. This commit also includes fix for the bug.

These tests will also be useful for validating an eventual fix to this issue: #625

…is not a mutliple of 8

Signed-off-by: Shrivastava, Shweta <shweta.shrivastava@intel.com>
Signed-off-by: Shrivastava, Shweta <shweta.shrivastava@intel.com>
Signed-off-by: Shrivastava, Shweta <shweta.shrivastava@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant