OSDN Git Service

Add definition of WSBH (Word Swap Bytes within Halfwords), which is an
authorAkira Hatanaka <ahatanaka@mips.com>
Tue, 20 Dec 2011 23:47:44 +0000 (23:47 +0000)
committerAkira Hatanaka <ahatanaka@mips.com>
Tue, 20 Dec 2011 23:47:44 +0000 (23:47 +0000)
commit4d2b0f3ce79cafca3b9aafd420da10a25e444f0d
treef829168aab7b2dcdd5271e3c6f54c3037795f457
parente1bcd6b5c67968910d0262cd9bebd39db6887357
Add definition of WSBH (Word Swap Bytes within Halfwords), which is an
instruction supported by mips32r2, and add a pattern which replaces bswap with
a ROTR and WSBH pair.

WSBW is removed since it is not an instruction the current architectures
support.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147015 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/Mips.td
lib/Target/Mips/MipsInstrInfo.td