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

SPU LLVM: Fix for AVX-512 CFLTU path #14467

Merged
merged 2 commits into from Aug 11, 2023
Merged

SPU LLVM: Fix for AVX-512 CFLTU path #14467

merged 2 commits into from Aug 11, 2023

Conversation

Whatcookie
Copy link
Member

vcvvtps2udq doesn't turn negative numbers into 0, fix by using signed integer max with 0 instead of vrangeps

fixes: #14462

@Whatcookie Whatcookie changed the title SPU LLVM: Fix for AVX-521 CFLTU path SPU LLVM: Fix for AVX-512 CFLTU path Aug 11, 2023
@elad335
Copy link
Contributor

elad335 commented Aug 11, 2023

What avx512 specific codegen llvm is expected to produce now? Like why is it not on the main path?

@Whatcookie
Copy link
Member Author

the VCVTTPS2UDQ instruction is AVX-512 only, FPtoUI emits a software conversion if you don't have AVX-512 I believe

- vcvvtps2udq doesn't turn negative numbers into 0, fix by using signed integer max with 0 instead of vrangeps
@elad335 elad335 merged commit 512f0a8 into RPCS3:master Aug 11, 2023
5 checks passed
@papagoghub
Copy link

This build fixes the problem, thanks.

@elad335 elad335 added Bugfix LLVM Related to LLVM instruction decoders labels Aug 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bugfix LLVM Related to LLVM instruction decoders
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Screen flickers while racing in Gran Turismo 6
3 participants