diff options
author | liuzhensong <liuzhensong@loongson.cn> | 2021-10-22 16:42:06 +0800 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-10-24 21:36:32 +1030 |
commit | 4462d7c440247bfcdc464412332bbec13b8aab12 (patch) | |
tree | 7559eea153d11930124e45d3fa6ead17ceefde8e /gas/doc | |
parent | e9a0721f8274daeffaedbc3cabc12c52d43a38a7 (diff) | |
download | gdb-4462d7c440247bfcdc464412332bbec13b8aab12.zip gdb-4462d7c440247bfcdc464412332bbec13b8aab12.tar.gz gdb-4462d7c440247bfcdc464412332bbec13b8aab12.tar.bz2 |
LoongArch gas support
2021-10-22 Chenghua Xu <xuchenghua@loongson.cn>
Zhensong Liu <liuzhensong@loongson.cn>
Weinan Liu <liuweinan@loongson.cn>
Xiaolin Tang <tangxiaolin@loongson.cn>
gas/
* Makefile.am: Add LoongArch.
* NEWS: Mention LoongArch support.
* config/loongarch-lex-wrapper.c: New.
* config/loongarch-lex.h: New.
* config/loongarch-lex.l: New.
* config/loongarch-parse.y: New.
* config/tc-loongarch.c: New.
* config/tc-loongarch.h: New.
* configure.ac: Add LoongArch.
* configure.tgt: Likewise.
* doc/as.texi: Likewise.
* doc/c-loongarch.texi: Likewise.
* Makefile.in: Regenerate.
* configure: Regenerate.
* po/POTFILES.in: Regenerate.
gas/testsuite/
* gas/all/gas.exp: Add LoongArch.
* gas/elf/elf.exp: Likewise.
* gas/loongarch/4opt_op.d: New.
* gas/loongarch/4opt_op.s: Likewise.
* gas/loongarch/fix_op.d: Likewise.
* gas/loongarch/fix_op.s: Likewise.
* gas/loongarch/float_op.d: Likewise.
* gas/loongarch/float_op.s: Likewise.
* gas/loongarch/imm_op.d: Likewise.
* gas/loongarch/imm_op.s: Likewise.
* gas/loongarch/jmp_op.d: Likewise.
* gas/loongarch/jmp_op.s: Likewise.
* gas/loongarch/load_store_op.d: Likewise.
* gas/loongarch/load_store_op.s: Likewise.
* gas/loongarch/loongarch.exp: Likewise.
* gas/loongarch/macro_op.d: Likewise.
* gas/loongarch/macro_op.s: Likewise.
* gas/loongarch/nop.d: Likewise.
* gas/loongarch/nop.s: Likewise.
* gas/loongarch/privilege_op.d: Likewise.
* gas/loongarch/privilege_op.s: Likewise.
* gas/loongarch/syscall.d: Likewise.
* gas/loongarch/syscall.s: Likewise.
* lib/gas-defs.exp: Add LoongArch.
Diffstat (limited to 'gas/doc')
-rw-r--r-- | gas/doc/as.texi | 31 | ||||
-rw-r--r-- | gas/doc/c-loongarch.texi | 39 |
2 files changed, 70 insertions, 0 deletions
diff --git a/gas/doc/as.texi b/gas/doc/as.texi index b8d5b9b..0cc7455 100644 --- a/gas/doc/as.texi +++ b/gas/doc/as.texi @@ -379,6 +379,11 @@ gcc(1), ld(1), and the Info entries for @file{binutils} and @file{ld}. @emph{Target IP2K options:} [@b{-mip2022}|@b{-mip2022ext}] @end ifset +@ifset LOONGARCH + +@emph{Target LOONGARCH options:} + [@b{-fpic}|@b{-fPIC}|@b{-fno-pic}] +@end ifset @ifset M32C @emph{Target M32C options:} @@ -1756,6 +1761,25 @@ Assemble for a little endian target. @end ifset @c man end +@ifset LOONGARCH + +@ifclear man +@xref{LoongArch-Options}, for the options available when @value{AS} is configured +for a LoongArch processor. +@end ifclear + +@ifset man +@c man begin OPTIONS +The following options are available when @value{AS} is configured for a +LoongArch processor. +@c man end +@c man begin INCLUDE +@include c-loongarch.texi +@c ended inside the included file +@end ifset + +@end ifset + @ifset METAG @ifclear man @@ -7837,6 +7861,9 @@ subject, see the hardware manufacturer's manual. @ifset IP2K * IP2K-Dependent:: IP2K Dependent Features @end ifset +@ifset LOONGARCH +* LoongArch-Dependent:: LoongArch Dependent Features +@end ifset @ifset LM32 * LM32-Dependent:: LM32 Dependent Features @end ifset @@ -8061,6 +8088,10 @@ family. @include c-lm32.texi @end ifset +@ifset LOONGARCH +@include c-loongarch.texi +@end ifset + @ifset M32C @include c-m32c.texi @end ifset diff --git a/gas/doc/c-loongarch.texi b/gas/doc/c-loongarch.texi new file mode 100644 index 0000000..2a13948 --- /dev/null +++ b/gas/doc/c-loongarch.texi @@ -0,0 +1,39 @@ +@c Copyright (C) 2021 Free Software Foundation, Inc. +@c This is part of the GAS anual. +@c For copying conditions, see the file as.texinfo +@c man end + +@ifset GENERIC +@page +@node LoongArch-Dependent +@chapter LoongArch Dependent Features +@end ifset +@ifclear GENERIC +@node Machine Dependencies +@chapter LoongArch Dependent Features +@end ifclear + +@cindex LoongArch support +@menu +* LoongArch-Options:: LoongArch Options +@end menu + +@node LoongArch-Options +@section LoongArch Options + +The following table lists all available LoongArch specific options. + +@c man begin OPTIONS +@table @gcctabopt + +@cindex @samp{-fpic} option, LoongArch +@item -fpic +@itemx -fPIC +Generate position-independent code + +@cindex @samp{-fno-pic} option, LoongArch +@item -fno-pic +Don't generate position-independent code (default) + +@end table +@c man end |