[all-commits] [llvm/llvm-project] 52d765: [X86] Fix register parsing in .seh_* in Intel syntax

Reid Kleckner via All-commits all-commits at lists.llvm.org
Fri Oct 18 14:00:36 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 52d765544b50d2260cf4858ed63c827880b987df
      https://github.com/llvm/llvm-project/commit/52d765544b50d2260cf4858ed63c827880b987df
  Author: Reid Kleckner <rnk at google.com>
  Date:   2019-10-18 (Fri, 18 Oct 2019)

  Changed paths:
    M llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
    M llvm/test/MC/AsmParser/directive_seh.s

  Log Message:
  -----------
  [X86] Fix register parsing in .seh_* in Intel syntax

Previously, the parser checked for a '%' prefix to indicate a register.
In Intel syntax mode, LLVM does not print a '%' prefix on registers, so
LLVM could not parse its own assembly output. Instead, require that
register numbers be integer literals, or at least start with an integer
literal, which is consistent with .cfi_* directive register parsing.

llvm-svn: 375287




More information about the All-commits mailing list