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 updated some test cases due to new modifiers.
New test: test/MC/LoongArch/Relocations/relocations.s
From a quick grep, the middle part should be spelled the same as the target name, i.e. the names should look like VK_LoongArch_XXX instead. Don't use the binutils convention ("LARCH") as the "larch" abbreviation is in fact not seen anywhere outside binutils.