]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: assume at as source/dest of MSA copy/insert instructions
authorPaul Burton <paul.burton@imgtec.com>
Fri, 30 Jan 2015 12:09:31 +0000 (12:09 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 27 Mar 2015 18:42:43 +0000 (19:42 +0100)
commit3bb8d92bb5f4e598108eff760a275b36bfba5df6
tree312603296cd9b0d4e977ff3e0dcecdb353c4c5cb
parent7c8376b30f1cbab1f9cbcd876bffb059d758cf7d
MIPS: assume at as source/dest of MSA copy/insert instructions

Assuming at ($1) as the source or destination register of copy or
insert instructions:

  - Simplifies the macros providing those instructions for toolchains
    without MSA support.

  - Avoids an unnecessary move instruction when at is used as the source
    or destination register anyway.

  - Is sufficient for the uses to be introduced in the kernel by a
    subsequent patch.

Note that due to a patch ordering snafu on my part this also fixes the
currently broken build with MSA support enabled. The build has been
broken since commit 8ebd5b8ceae4 "MIPS: init upper 64b of vector
registers when MSA is first used", which this patch should have
preceeded.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/9161/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/asmmacro.h