HomePhabricator

[AMDGPU] Fix width check for signed mul24 generation.

Authored by abinavpp on Oct 14 2021, 10:03 AM.

Description

[AMDGPU] Fix width check for signed mul24 generation.

This changes fixes a case in which the highest set bit of the original
result is at bit 31 and sign-extending the mul24 for it would make the
result negative.

Differential Revision: https://reviews.llvm.org/D111823