[all-commits] [llvm/llvm-project] ad3b02: [Sparc] Support relocatable expressions in the ass...

doac via All-commits all-commits at lists.llvm.org
Wed Feb 10 05:54:19 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ad3b023c8898b9399717e8eb45971928b5bfe4c3
      https://github.com/llvm/llvm-project/commit/ad3b023c8898b9399717e8eb45971928b5bfe4c3
  Author: Daniel Cederman <cederman at gaisler.com>
  Date:   2021-02-10 (Wed, 10 Feb 2021)

  Changed paths:
    M llvm/lib/Target/Sparc/AsmParser/SparcAsmParser.cpp
    M llvm/test/MC/Sparc/sparc-assembly-exprs.s

  Log Message:
  -----------
  [Sparc] Support relocatable expressions in the assembler

Allow assembler expressions to start with an identifier. This allows for expressions such as
```
b symbol + 4
```
and
```
mov symEnd - symStart, %g1
```

The patch builds upon https://reviews.llvm.org/D47136.

Reviewed By: joerg

Differential Revision: https://reviews.llvm.org/D47458




More information about the All-commits mailing list