diff options
author | mengqinggang <mengqinggang@loongson.cn> | 2023-06-22 10:35:28 +0800 |
---|---|---|
committer | liuzhensong <liuzhensong@loongson.cn> | 2023-06-28 16:14:35 +0800 |
commit | 75b2f521b101d974354f6ce9ed7c054d8b2e3b7a (patch) | |
tree | 0460e55e4141ad3fd7d7bd705f829b9caacf1dbd /gas | |
parent | be1ebb6710a8f707bd4b0eecbd00f4f4964050e5 (diff) | |
download | gdb-75b2f521b101d974354f6ce9ed7c054d8b2e3b7a.zip gdb-75b2f521b101d974354f6ce9ed7c054d8b2e3b7a.tar.gz gdb-75b2f521b101d974354f6ce9ed7c054d8b2e3b7a.tar.bz2 |
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 'gas')
-rw-r--r-- | gas/config/tc-loongarch.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gas/config/tc-loongarch.c b/gas/config/tc-loongarch.c index 4ea7b87..7366e76 100644 --- a/gas/config/tc-loongarch.c +++ b/gas/config/tc-loongarch.c @@ -166,6 +166,8 @@ md_parse_option (int c, const char *arg) { LARCH_opts.ase_ilp32 = 1; LARCH_opts.ase_lp64 = 1; + LARCH_opts.ase_lsx = 1; + LARCH_opts.ase_lasx = 1; LARCH_opts.ase_abi = lp64[suf[4]]; } else if (strncasecmp (arg, "ilp32", 5) == 0 && ilp32[suf[5]] != 0) @@ -241,6 +243,8 @@ loongarch_after_parse_args () LARCH_opts.ase_abi = EF_LOONGARCH_ABI_DOUBLE_FLOAT; LARCH_opts.ase_ilp32 = 1; LARCH_opts.ase_lp64 = 1; + LARCH_opts.ase_lsx = 1; + LARCH_opts.ase_lasx = 1; } else if (strcmp (default_arch, "loongarch32") == 0) { |