OSDN Git Service

[VE] Support symbol with offset in assembly
authorKazushi (Jam) Marukawa <marukawa@nec.com>
Mon, 6 Jul 2020 18:49:59 +0000 (03:49 +0900)
committerKazushi (Jam) Marukawa <marukawa@nec.com>
Mon, 6 Jul 2020 19:16:51 +0000 (04:16 +0900)
commitfa1fecc73d4d3884ae8eb887ac06c0f7f7492053
tree25067cd059bd3b7952b71dbfe1a99d9be244835b
parent71a6a41f1c55c43c07942e49ef8ecdabd95f8b61
[VE] Support symbol with offset in assembly

Summary:
Change MCExpr to support Aurora VE's modifiers.  Change asmparser to use
existing MCExpr parser (parseExpression) to parse an expression contining
symbols with modifiers and offsets.  Also add several regression tests
of MC layer.

Reviewers: simoll, k-ishizaka

Reviewed By: simoll

Subscribers: hiraditya, llvm-commits

Tags: #llvm, #ve

Differential Revision: https://reviews.llvm.org/D83170
llvm/include/llvm/MC/MCExpr.h
llvm/lib/MC/MCExpr.cpp
llvm/lib/Target/VE/AsmParser/VEAsmParser.cpp
llvm/test/MC/VE/sym-br.s [new file with mode: 0644]
llvm/test/MC/VE/symbols.s