diff options
author | wanglei <wanglei@loongson.cn> | 2022-08-20 10:13:29 +0800 |
---|---|---|
committer | Weining Lu <luweining@loongson.cn> | 2022-08-20 11:19:24 +0800 |
commit | c2ee21cf3f863dbe48bd6decf896b41891808647 (patch) | |
tree | f52e73ff1e1bc7edee3ed25e9535b8bf8eec37ee /clang/lib/Frontend | |
parent | 1e0fe6a9475ab2cf0d09f3ddf5cc69761458e1e0 (diff) | |
download | llvm-c2ee21cf3f863dbe48bd6decf896b41891808647.zip llvm-c2ee21cf3f863dbe48bd6decf896b41891808647.tar.gz llvm-c2ee21cf3f863dbe48bd6decf896b41891808647.tar.bz2 |
[LoongArch] Add some fixups and relocations
This patch only add %pc_hi20/%pc_lo12/%plt relocations in order
to be able to generate gnu ld linkable relocation file for the
`hello world` IR :
```
@.str = private unnamed_addr constant [14 x i8] c"Hello world!\0A\00", align 1
define dso_local signext i32 @main() nounwind {
entry:
%call = call signext i32 (ptr, ...) @printf(ptr noundef @.str)
ret i32 0
}
declare dso_local signext i32 @printf(ptr noundef, ...)
```
This patch also updates some test cases due to new modifiers introduced.
New test: test/MC/LoongArch/Relocations/relocations.s
Differential Revision: https://reviews.llvm.org/D132108
Diffstat (limited to 'clang/lib/Frontend')
0 files changed, 0 insertions, 0 deletions