[CSKY] Enhance asm parser and relocation fixup for some special symbol address instru...
authorZi Xuan Wu <zixuan.wu@linux.alibaba.com>
Fri, 18 Mar 2022 07:40:14 +0000 (15:40 +0800)
committerZi Xuan Wu <zixuan.wu@linux.alibaba.com>
Thu, 24 Mar 2022 06:14:04 +0000 (14:14 +0800)
commit582836faafcb458161947a72df27752fe5f76171
tree4d77474ac11e3006f9ad6458617d4c85561a8e14
parentb8388fa319bc68bee396a14857331fb2e7b815bd
[CSKY] Enhance asm parser and relocation fixup for some special symbol address instruction

Add processing of parsing and emiting lrw/jsri/jmpi instruction, including related fixup and relocation.
Add relax support about pseudo instructions such as jbr/jbsr.
Add objdump format support like arm in llvm-objdump.
23 files changed:
llvm/lib/Target/CSKY/AsmParser/CSKYAsmParser.cpp
llvm/lib/Target/CSKY/CSKYInstrAlias.td [new file with mode: 0644]
llvm/lib/Target/CSKY/CSKYInstrInfo.td
llvm/lib/Target/CSKY/MCTargetDesc/CSKYAsmBackend.cpp
llvm/lib/Target/CSKY/MCTargetDesc/CSKYAsmBackend.h
llvm/lib/Target/CSKY/MCTargetDesc/CSKYELFObjectWriter.cpp
llvm/lib/Target/CSKY/MCTargetDesc/CSKYMCCodeEmitter.cpp
llvm/lib/Target/CSKY/MCTargetDesc/CSKYMCCodeEmitter.h
llvm/lib/Target/CSKY/MCTargetDesc/CSKYMCTargetDesc.cpp
llvm/test/MC/CSKY/3e3r1.s [new file with mode: 0644]
llvm/test/MC/CSKY/801.s [new file with mode: 0644]
llvm/test/MC/CSKY/branch-relax-801.s [new file with mode: 0644]
llvm/test/MC/CSKY/branch-relax-803.s [new file with mode: 0644]
llvm/test/MC/CSKY/bsr.s [new file with mode: 0644]
llvm/test/MC/CSKY/jmpi.s [new file with mode: 0644]
llvm/test/MC/CSKY/jsri.s [new file with mode: 0644]
llvm/test/MC/CSKY/lrs.s [new file with mode: 0644]
llvm/test/MC/CSKY/lrw.s [new file with mode: 0644]
llvm/test/MC/CSKY/tls_gd.s [new file with mode: 0644]
llvm/test/MC/CSKY/tls_ie.s [new file with mode: 0644]
llvm/test/MC/CSKY/tls_ld.s [new file with mode: 0644]
llvm/test/MC/CSKY/tls_le.s [new file with mode: 0644]
llvm/tools/llvm-objdump/llvm-objdump.cpp