summaryrefslogtreecommitdiff
path: root/lib/Target/Mips/MSA.txt
diff options
context:
space:
mode:
authorDaniel Sanders <daniel.sanders@imgtec.com>2013-10-30 13:07:44 +0000
committerDaniel Sanders <daniel.sanders@imgtec.com>2013-10-30 13:07:44 +0000
commit57cd3bc4064bd71eb6572d3cba5e23471ab25863 (patch)
treedff26cdc3cc6aee097c810c506158119d1880cfd /lib/Target/Mips/MSA.txt
parent9a5df73e32819c45884feee6bd49e7ebe911f977 (diff)
downloadllvm-57cd3bc4064bd71eb6572d3cba5e23471ab25863.tar.gz
llvm-57cd3bc4064bd71eb6572d3cba5e23471ab25863.tar.bz2
llvm-57cd3bc4064bd71eb6572d3cba5e23471ab25863.tar.xz
[mips][msa] Added support for matching splat.[bhw] from normal IR (i.e. not intrinsics)
splat.d is implemented but this subtest is currently disabled. This is because it is difficult to match the appropriate IR on MIPS32. There is a patch under review that should help with this so I hope to enable the subtest soon. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193680 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MSA.txt')
-rw-r--r--lib/Target/Mips/MSA.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/Target/Mips/MSA.txt b/lib/Target/Mips/MSA.txt
index a6a7dda88e..f7c42c06ce 100644
--- a/lib/Target/Mips/MSA.txt
+++ b/lib/Target/Mips/MSA.txt
@@ -21,6 +21,12 @@ vshf.w:
unknown at compile-time due to the definition of shufflevector in
LLVM IR.
+vshf.[bhwd]
+ When the shuffle description describes a splat operation, splat.[bhwd]
+ instructions will be selected instead of vshf.[bhwd]. Unlike the ilv*,
+ and pck* instructions, this is matched from MipsISD::VSHF instead of
+ a special-case MipsISD node.
+
ilvl.d, pckev.d:
It is not possible to emit ilvl.d, or pckev.d since ilvev.d covers the
same shuffle. ilvev.d will be emitted instead.
@@ -29,6 +35,10 @@ ilvr.d, ilvod.d, pckod.d:
It is not possible to emit ilvr.d, or pckod.d since ilvod.d covers the
same shuffle. ilvod.d will be emitted instead.
+splat.[bhwd]
+ The intrinsic will work as expected. However, unlike other intrinsics
+ it lowers directly to MipsISD::VSHF instead of using common IR.
+
splati.w:
It is not possible to emit splati.w since shf.w covers the same cases.
shf.w will be emitted instead.