Correct compatibility with the GNU Assembler's handling of the comparison operators. GAS returns -1 for a comparison operator if the result is true and 0 if false.
https://www.sourceware.org/binutils/docs-2.12/as.info/Infix-Ops.html#Infix%20Ops
Paths
| Differential D46802
The return value of a comparison operator is -1 if true and 0 if false ClosedPublic Authored by void on May 13 2018, 1:13 AM.
Details
Diff Detail Event TimelineThis revision is now accepted and ready to land.May 13 2018, 8:12 PM
Revision Contents
Diff 146534 lib/MC/MCExpr.cpp
test/MC/AsmParser/altmacro_string.s
test/MC/AsmParser/directive_space.s
test/MC/AsmParser/exprs.s
|
The docs say Land and LOr must be 0 or 1.