Skip to content

Restore support for bitwise SIMD intrinsics - #1893

Merged
adpaco merged 4 commits into
model-checking:mainfrom
adpaco:simd-bitwise-ops-support
Nov 17, 2022
Merged

adpaco merged 4 commits into
model-checking:mainfrom
adpaco:simd-bitwise-ops-support

Conversation

@adpaco

@adpaco adpaco commented Nov 14, 2022

Copy link
Copy Markdown
Contributor

Description of changes:

Restores the support for bitwise SIMD intrinsics:

  • simd_and
  • simd_or
  • simd_xor

Also adds a new test for these specific intrinsics.

Resolved issues:

Towards #1148

Call-outs:

Testing:

  • How is this change tested? Existing regression and 1 new test.

  • Is this a refactor change? No.

Checklist

  • Each commit message has a non-empty body, explaining why the change was made
  • Methods or procedures are documented
  • Regression or unit tests are included, or existing tests cover the modified code
  • My PR is restricted to a single feature or bugfix

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.

@adpaco
adpaco requested a review from a team as a code owner November 14, 2022 15:55

@tedinski tedinski left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have the same question as Daniel, but I don't think merging should be blocked over it.

Were these delayed by waiting for changes on the cbmc side? Or were these the easy ones?

@adpaco adpaco self-assigned this Nov 15, 2022
@adpaco

adpaco commented Nov 16, 2022

Copy link
Copy Markdown
Contributor Author

Thanks all for you comments.

Should we check this for different bitwidths?

The test now checks for this instead. My main concern was performance, but it seems to run pretty fast regardless.

Were these delayed by waiting for changes on the cbmc side? Or were these the easy ones?

These are the easy ones: They don't need changes in CBMC nor Kani. We don't need to add checks for these operations, but that's not the case for arithmetic operators (which will be coming soon).

@adpaco
adpaco force-pushed the simd-bitwise-ops-support branch from 5e98ed1 to f629415 Compare November 17, 2022 18:45
@adpaco
adpaco merged commit cf017e8 into model-checking:main Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants