[PATCH] D36229: [X86][Asm] Allow negative immediate to appear before bracketed expression

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 3 14:51:57 PDT 2017


efriedma added a comment.

Needs testcase.



================
Comment at: lib/Target/X86/AsmParser/X86AsmParser.cpp:1943
       // Otherwise, rewrite the complex expression as a single immediate.
       InstInfo->AsmRewrites->emplace_back(AOK_Imm, Start, Len, Imm);
   }
----------------
It looks like this is implicitly truncating Imm from int64_t to int?


Repository:
  rL LLVM

https://reviews.llvm.org/D36229





More information about the llvm-commits mailing list