Correct compatibility with the GNU Assembler's handling of comparison ops
authorBill Wendling <isanbard@gmail.com>
Mon, 14 May 2018 05:25:36 +0000 (05:25 +0000)
committerBill Wendling <isanbard@gmail.com>
Mon, 14 May 2018 05:25:36 +0000 (05:25 +0000)
commit2a302210d0a34ee6406c88ef727004b826eeca32
treecbbe5fb5e6ab7c3b3d3aad066adcdf8b3cf4a6e1
parentf633f3eb67dbbb337ae1f929b0f840bd2ba00a67
Correct compatibility with the GNU Assembler's handling of comparison ops

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

llvm-svn: 332215
llvm/lib/MC/MCExpr.cpp
llvm/test/MC/AsmParser/altmacro_string.s
llvm/test/MC/AsmParser/directive_space.s
llvm/test/MC/AsmParser/exprs.s