[PATCH] D75669: [ARM][MVE] Enable VMOVN for tail predication
Sam Parker via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 5 03:51:44 PST 2020
samparker created this revision.
samparker added reviewers: SjoerdMeijer, dmgreen.
Herald added subscribers: hiraditya, kristof.beyls.
Herald added a project: LLVM.
These instructions also don't change lanes, so make them legal too.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D75669
Files:
llvm/lib/Target/ARM/ARMInstrMVE.td
llvm/unittests/Target/ARM/MachineInstrTest.cpp
Index: llvm/unittests/Target/ARM/MachineInstrTest.cpp
===================================================================
--- llvm/unittests/Target/ARM/MachineInstrTest.cpp
+++ llvm/unittests/Target/ARM/MachineInstrTest.cpp
@@ -256,6 +256,10 @@
case MVE_VMOVimmi32:
case MVE_VMOVimmi64:
case MVE_VMOVimmi8:
+ case MVE_VMOVNi16bh:
+ case MVE_VMOVNi16th:
+ case MVE_VMOVNi32bh:
+ case MVE_VMOVNi32th:
case MVE_VMULLBp16:
case MVE_VMULLBp8:
case MVE_VMULLBs16:
@@ -321,6 +325,18 @@
case MVE_VQNEGs16:
case MVE_VQNEGs32:
case MVE_VQNEGs8:
+ case MVE_VQMOVNs16bh:
+ case MVE_VQMOVNs16th:
+ case MVE_VQMOVNs32bh:
+ case MVE_VQMOVNs32th:
+ case MVE_VQMOVNu16bh:
+ case MVE_VQMOVNu16th:
+ case MVE_VQMOVNu32bh:
+ case MVE_VQMOVNu32th:
+ case MVE_VQMOVUNs16bh:
+ case MVE_VQMOVUNs16th:
+ case MVE_VQMOVUNs32bh:
+ case MVE_VQMOVUNs32th:
case MVE_VQRSHL_by_vecs16:
case MVE_VQRSHL_by_vecs32:
case MVE_VQRSHL_by_vecs8:
Index: llvm/lib/Target/ARM/ARMInstrMVE.td
===================================================================
--- llvm/lib/Target/ARM/ARMInstrMVE.td
+++ llvm/lib/Target/ARM/ARMInstrMVE.td
@@ -4421,6 +4421,7 @@
let Inst{8} = 0b0;
let Inst{7} = !if(!eq(bit_17, 0), 1, 0);
let Inst{0} = 0b1;
+ let validForTailPredication = 1;
}
multiclass MVE_VxMOVxN_halves<string iname, string suffix,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75669.248424.patch
Type: text/x-patch
Size: 1416 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200305/68fdb725/attachment-0001.bin>
More information about the llvm-commits
mailing list