summaryrefslogtreecommitdiffstats
path: root/arch/mips/mm
diff options
context:
space:
mode:
authorMarkos Chandras <markos.chandras@imgtec.com>2014-06-23 10:38:44 +0100
committerRalf Baechle <ralf@linux-mips.org>2014-06-26 10:48:19 +0100
commit9d9873697e8b5aaf39ef1f96e57ab4fffb8f45ae (patch)
treee704bbd487246e892174a041fbeef2b68031e632 /arch/mips/mm
parent91ad11d7cc6f4472ebf177a6252fbf0fd100d798 (diff)
downloadlinux-0-day-9d9873697e8b5aaf39ef1f96e57ab4fffb8f45ae.tar.gz
linux-0-day-9d9873697e8b5aaf39ef1f96e57ab4fffb8f45ae.tar.xz
MIPS: uasm: Add s3s1s2 instruction builder
It will be used later on by the SLT instruction. Signed-off-by: Markos Chandras <markos.chandras@imgtec.com> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/7119/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/mm')
-rw-r--r--arch/mips/mm/uasm.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/mips/mm/uasm.c b/arch/mips/mm/uasm.c
index 00515805fe41d..1e3e10919423c 100644
--- a/arch/mips/mm/uasm.c
+++ b/arch/mips/mm/uasm.c
@@ -139,6 +139,13 @@ Ip_u1u2u3(op) \
} \
UASM_EXPORT_SYMBOL(uasm_i##op);
+#define I_s3s1s2(op) \
+Ip_s3s1s2(op) \
+{ \
+ build_insn(buf, insn##op, b, c, a); \
+} \
+UASM_EXPORT_SYMBOL(uasm_i##op);
+
#define I_u2u1u3(op) \
Ip_u2u1u3(op) \
{ \