about summary refs log tree commit diff
path: root/config.h.in
diff options
context:
space:
mode:
authorcaiyinyu <caiyinyu@loongson.cn>2023-07-06 16:30:52 +0800
committercaiyinyu <caiyinyu@loongson.cn>2023-07-11 10:56:01 +0800
commit0d341d09f27fdc48a0e65242f3701ba8ea980b37 (patch)
treec89c6e11a2113b10a302c840b15f8b3d4bc9f7dc /config.h.in
parent19f9f7f9d5064ad6608e6d40a3aa1b3db8a4a1ae (diff)
downloadglibc-0d341d09f27fdc48a0e65242f3701ba8ea980b37.tar.gz
glibc-0d341d09f27fdc48a0e65242f3701ba8ea980b37.tar.xz
glibc-0d341d09f27fdc48a0e65242f3701ba8ea980b37.zip
LoongArch: config: Added HAVE_LOONGARCH_VEC_ASM.
This patch checks if assembler supports vector instructions to
generate LASX/LSX code or not, and then define HAVE_LOONGARCH_VEC_ASM macro

We have added support for vector instructions in binutils-2.41
See:
https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=75b2f521b101d974354f6ce9ed7c054d8b2e3b7a

commit 75b2f521b101d974354f6ce9ed7c054d8b2e3b7a
Author: mengqinggang <mengqinggang@loongson.cn>
Date:   Thu Jun 22 10:35:28 2023 +0800

LoongArch: gas: Add lsx and lasx instructions support

gas/ChangeLog:

        * config/tc-loongarch.c (md_parse_option): Add lsx and lasx option.
        (loongarch_after_parse_args): Add lsx and lasx option.

opcodes/ChangeLog:

        * loongarch-opc.c (struct loongarch_ase): Add lsx and lasx
        instructions.
Diffstat (limited to 'config.h.in')
-rw-r--r--config.h.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/config.h.in b/config.h.in
index 44a34072a4..0dedc124f7 100644
--- a/config.h.in
+++ b/config.h.in
@@ -141,6 +141,11 @@
 /* LOONGARCH floating-point ABI for ld.so.  */
 #undef LOONGARCH_ABI_FRLEN
 
+/* Assembler support LoongArch LASX/LSX vector instructions.
+   This macro becomes obsolete when glibc increased the minimum
+   required version of GNU 'binutils' to 2.41 or later. */
+#define HAVE_LOONGARCH_VEC_ASM 0
+
 /* Linux specific: minimum supported kernel version.  */
 #undef	__LINUX_KERNEL_VERSION