Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove explicit VEX coding from sad ASM #2941

Merged
merged 2 commits into from
May 16, 2022
Merged

Conversation

redzic
Copy link
Collaborator

@redzic redzic commented May 16, 2022

I didn't initially see this problem in #2940. I believe executing VEX-encoded instructions on processors that don't support them (e.g., if it only supports sse2) will cause SIGILL.

@coveralls
Copy link
Collaborator

coveralls commented May 16, 2022

Coverage Status

Coverage increased (+0.2%) to 85.605% when pulling 76f9588 on redzic:fix-asm-sad into 9c3a494 on xiph:master.

Copy link
Collaborator

@shssoichiro shssoichiro left a comment

Choose a reason for hiding this comment

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

Basically, this is relying on nasm magic to choose the right one for the version we're compiling, right? As you described in your other issue.

@redzic
Copy link
Collaborator Author

redzic commented May 16, 2022

More specifically the macros defined in x86inc.asm, but yeah pretty much. vpaddq/vpxor is used on the avx2 version, and paddq/pxor is used on the sse2 version automatically.

@redzic
Copy link
Collaborator Author

redzic commented May 16, 2022

The coveralls bot seems broken by the way, I mean how does code coverage change based on adding a couple spaces?

@redzic redzic merged commit 9d6d5d1 into xiph:master May 16, 2022
@redzic redzic deleted the fix-asm-sad branch May 16, 2022 19:01
@shssoichiro
Copy link
Collaborator

I'm surprised coveralls is posting comments at all, given that their documentation said posting comments on PRs doesn't work with Github Actions. 🤷

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.

3 participants