This directive impacts assembly pseudoinstruction la.
Also add a test for codegen to assert that this directive behaves like other ones (i.e. no effect) when directly emitting ELF files from codegen.
Paths
| Differential D77867
[RISCV][AsmParser] Implement .option (no)pic ClosedPublic Authored by rogfer01 on Apr 10 2020, 5:54 AM.
Details Summary This directive impacts assembly pseudoinstruction la. Also add a test for codegen to assert that this directive behaves like other ones (i.e. no effect) when directly emitting ELF files from codegen.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Apr 13 2020, 6:38 AM Closed by commit rG5f236864124d: [RISCV][AsmParser] Implement .option (no)pic (authored by rogfer01). · Explain WhyApr 17 2020, 5:22 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 258295 llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFStreamer.h
llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFStreamer.cpp
llvm/lib/Target/RISCV/MCTargetDesc/RISCVTargetStreamer.h
llvm/lib/Target/RISCV/MCTargetDesc/RISCVTargetStreamer.cpp
llvm/test/CodeGen/RISCV/option-nopic.ll
llvm/test/CodeGen/RISCV/option-pic.ll
llvm/test/MC/RISCV/option-nopic.s
llvm/test/MC/RISCV/option-pic.s
llvm/test/MC/RISCV/option-pushpop.s
|