aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorLulu Cai <cailulu@loongson.cn>2024-10-25 20:52:18 +0800
committerliuzhensong <liuzhensong@loongson.cn>2024-10-29 15:56:52 +0800
commit287938873c4a001a608349e652e82c2b2da64508 (patch)
tree18180b870aa39ac85dbb19f83c036ae01367f5bb /gas/config
parent5168ed9912e3a090a7964db99159abdf6d27ef9e (diff)
downloadgdb-287938873c4a001a608349e652e82c2b2da64508.zip
gdb-287938873c4a001a608349e652e82c2b2da64508.tar.gz
gdb-287938873c4a001a608349e652e82c2b2da64508.tar.bz2
LoongArch: Corrected to GNU style code
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-loongarch.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/gas/config/tc-loongarch.c b/gas/config/tc-loongarch.c
index d5236aa..411c24b 100644
--- a/gas/config/tc-loongarch.c
+++ b/gas/config/tc-loongarch.c
@@ -1080,7 +1080,7 @@ check_this_insn_before_appending (struct loongarch_cl_insn *ip)
}
/* check all atomic memory insns */
else if (ip->insn->mask == LARCH_MK_ATOMIC_MEM
- && LARCH_INSN_ATOMIC_MEM(ip->insn_bin))
+ && LARCH_INSN_ATOMIC_MEM (ip->insn_bin))
{
/* For AMO insn amswap.[wd], amadd.[wd], etc. */
if (ip->args[0] != 0
@@ -1090,22 +1090,22 @@ check_this_insn_before_appending (struct loongarch_cl_insn *ip)
}
else if ((ip->insn->mask == LARCH_MK_BSTRINS_W
/* bstr(ins|pick).w rd, rj, msbw, lsbw */
- && (LARCH_INSN_BSTRINS_W(ip->insn_bin)
- || LARCH_INSN_BSTRPICK_W(ip->insn_bin)))
+ && (LARCH_INSN_BSTRINS_W (ip->insn_bin)
+ || LARCH_INSN_BSTRPICK_W (ip->insn_bin)))
|| (ip->insn->mask == LARCH_MK_BSTRINS_D
/* bstr(ins|pick).d rd, rj, msbd, lsbd */
- && (LARCH_INSN_BSTRINS_D(ip->insn_bin)
- || LARCH_INSN_BSTRPICK_D(ip->insn_bin))))
+ && (LARCH_INSN_BSTRINS_D (ip->insn_bin)
+ || LARCH_INSN_BSTRPICK_D (ip->insn_bin))))
{
/* For bstr(ins|pick).[wd]. */
if (ip->args[2] < ip->args[3])
as_bad (_("bstr(ins|pick).[wd] require msbd >= lsbd"));
}
else if (ip->insn->mask != 0
- && (LARCH_INSN_CSRXCHG(ip->insn_bin)
- || LARCH_INSN_GCSRXCHG(ip->insn_bin))
- && (LARCH_GET_RJ(ip->insn_bin) == 0
- || LARCH_GET_RJ(ip->insn_bin) == 1)
+ && (LARCH_INSN_CSRXCHG (ip->insn_bin)
+ || LARCH_INSN_GCSRXCHG (ip->insn_bin))
+ && (LARCH_GET_RJ (ip->insn_bin) == 0
+ || LARCH_GET_RJ (ip->insn_bin) == 1)
/* csrxchg rd, rj, csr_num */
&& (strcmp ("csrxchg", ip->name) == 0
|| strcmp ("gcsrxchg", ip->name) == 0))
@@ -2231,7 +2231,7 @@ loongarch_convert_frag_branch (fragS *fragp)
case RELAX_BRANCH_26:
insn = bfd_getl32 (buf);
/* Invert the branch condition. */
- if (LARCH_INSN_FLOAT_BRANCH(insn))
+ if (LARCH_INSN_FLOAT_BRANCH (insn))
insn ^= LARCH_FLOAT_BRANCH_INVERT_BIT;
else
insn ^= LARCH_BRANCH_INVERT_BIT;