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.
This commit is contained in:
mengqinggang 2023-06-22 10:35:28 +08:00 committed by liuzhensong
parent be1ebb6710
commit 75b2f521b1
2 changed files with 1469 additions and 0 deletions

View File

@ -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)
{

File diff suppressed because it is too large Load Diff