Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-06-17 | amd64: fix conditional jump when compare is swapped and used elsewhere | Michael Forney | |
selcmp may potentially swap the arguments and return 1 indicating that the opposite operation should be used. However, if the compare result is used for a conditional jump as well as elsewhere, the original compare op is used instead of the opposite. To fix this, add a check to see whether the opposite compare should be used, regardless of whether selcmp() is done now, or later on during sel(). Bug report and test case from Charlie Stanton. |