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

fix Issue 20162 - Sign Extension for ?: optimization done wrong #11529

Merged
merged 1 commit into from Aug 9, 2020

Conversation

WalterBright
Copy link
Member

The problem was the REX_W bit was set incorrectly for sign extension. It should be set based on e.Ety rather than e1.Ety.

Some of the diffs in mars1.d are due to converting tabs to spaces.

@dlang-bot
Copy link
Contributor

Thanks for your pull request, @WalterBright!

Bugzilla references

Auto-close Bugzilla Severity Description
20162 major Sign Extension for ?: optimization done wrong

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "master + dmd#11529"

@ghost ghost added the auto-merge label Aug 9, 2020
@dlang-bot dlang-bot merged commit 18c930d into dlang:master Aug 9, 2020
@WalterBright WalterBright deleted the fix20162 branch August 9, 2020 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants