This is an archive of the discontinued LLVM Phabricator instance.

Fix Issue #56706 (maskl(0), maskr(0) return -1 instead of 0)
ClosedPublic

Authored by tarunprabhu on Jul 26 2022, 11:14 AM.

Diff Detail

Event Timeline

tarunprabhu created this revision.Jul 26 2022, 11:14 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 26 2022, 11:14 AM
tarunprabhu requested review of this revision.Jul 26 2022, 11:14 AM

Add an explicit condition for the BITS = 0 case

This is probably a better commit title. I would put your title as description.

I agree with clementval's comment about the commit title (should also have [flang]), otherwise LGTM, thanks for fixing the bug !

This revision was not accepted when it landed; it landed in state Needs Review.Aug 8 2022, 9:35 AM
This revision was automatically updated to reflect the committed changes.

Is there any reason you landed the patch without acceptance?

Oh, I'm sorry. I should have asked for acceptance before committing.

There were no comments on this for some time and the other comments suggested that it was fine. I made the change to flip the title and the commit message in the actual commit.

My apologies again. Should I revert that commit?

Looks ok. You don't need to revert. Next time wait for a formal acceptance or a "LGTM". No comment does not mean approved. Personally I did not go through the whole patch when I sent the previous comment.

Noted. In my defense, there was a LGTM from @jeanPerier.

I agree with clementval's comment about the commit title (should also have [flang]), otherwise LGTM, thanks for fixing the bug !

But I'll wait for a formal acceptance so there's no confusion.

Noted. In my defense, there was a LGTM from @jeanPerier.

I agree with clementval's comment about the commit title (should also have [flang]), otherwise LGTM, thanks for fixing the bug !

But I'll wait for a formal acceptance so there's no confusion.

My bad I did not notice it.

All's well that ends well ... :-)