[PATCH] D46802: The return value of a comparison operator is -1 if true and 0 if false

Bill Wendling via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun May 13 01:13:20 PDT 2018


void created this revision.
void added reviewers: echristo, niravd.
Herald added a subscriber: llvm-commits.

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


Repository:
  rL LLVM

https://reviews.llvm.org/D46802

Files:
  lib/MC/MCExpr.cpp
  test/MC/AsmParser/altmacro_string.s
  test/MC/AsmParser/directive_space.s
  test/MC/AsmParser/exprs.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46802.146503.patch
Type: text/x-patch
Size: 3660 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180513/ff5a9b27/attachment.bin>


More information about the llvm-commits mailing list