diff options
author | Jim Grosbach <grosbach@apple.com> | 2012-04-11 17:40:18 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2012-04-11 17:40:18 +0000 |
commit | 1835547ec195c35b3a59bf834f4df942c61a5c53 (patch) | |
tree | 750043ed23609e0a48c4275625121da8f304d2d1 /lib/Target/ARM/ARMInstrNEON.td | |
parent | 5c1761d486deb47648fa1b854692f4b64a35f0e2 (diff) | |
download | external_llvm-1835547ec195c35b3a59bf834f4df942c61a5c53.zip external_llvm-1835547ec195c35b3a59bf834f4df942c61a5c53.tar.gz external_llvm-1835547ec195c35b3a59bf834f4df942c61a5c53.tar.bz2 |
ARM 'vuzp.32 Dd, Dm' is a pseudo-instruction.
While there is an encoding for it in VUZP, the result of that is undefined,
so we should avoid it. Define the instruction as a pseudo for VTRN.32
instead, as the ARM ARM indicates.
rdar://11222366
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154511 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMInstrNEON.td')
-rw-r--r-- | lib/Target/ARM/ARMInstrNEON.td | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMInstrNEON.td b/lib/Target/ARM/ARMInstrNEON.td index 231e31a..c7219a6 100644 --- a/lib/Target/ARM/ARMInstrNEON.td +++ b/lib/Target/ARM/ARMInstrNEON.td @@ -5378,7 +5378,9 @@ def VTRNq32 : N2VQShuffle<0b10, 0b00001, IIC_VPERMQ, "vtrn", "32">; def VUZPd8 : N2VDShuffle<0b00, 0b00010, "vuzp", "8">; def VUZPd16 : N2VDShuffle<0b01, 0b00010, "vuzp", "16">; -def VUZPd32 : N2VDShuffle<0b10, 0b00010, "vuzp", "32">; +// vuzp.32 Dd, Dm is a pseudo-instruction expanded to vtrn.32 Dd, Dm. +def : NEONInstAlias<"vuzp${p}.32 $Dd, $Dm", + (VTRNd32 DPR:$Dd, DPR:$Dm, pred:$p)>; def VUZPq8 : N2VQShuffle<0b00, 0b00010, IIC_VPERMQ3, "vuzp", "8">; def VUZPq16 : N2VQShuffle<0b01, 0b00010, IIC_VPERMQ3, "vuzp", "16">; |