mirror of
git://c9x.me/qbe.git
synced 2026-04-05 09:59:47 +00:00
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. |
||
|---|---|---|
| .. | ||
| all.h | ||
| emit.c | ||
| isel.c | ||
| sysv.c | ||
| targ.c | ||