llvm.org GIT mirror llvm / 1835547
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 Jim Grosbach 8 years ago
3 changed file(s) with 7 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
28442844 case MVT::v8i8: Opc = ARM::VUZPd8; break;
28452845 case MVT::v4i16: Opc = ARM::VUZPd16; break;
28462846 case MVT::v2f32:
2847 case MVT::v2i32: Opc = ARM::VUZPd32; break;
2847 // vuzp.32 Dd, Dm is a pseudo-instruction expanded to vtrn.32 Dd, Dm.
2848 case MVT::v2i32: Opc = ARM::VTRNd32; break;
28482849 case MVT::v16i8: Opc = ARM::VUZPq8; break;
28492850 case MVT::v8i16: Opc = ARM::VUZPq16; break;
28502851 case MVT::v4f32:
53775377
53785378 def VUZPd8 : N2VDShuffle<0b00, 0b00010, "vuzp", "8">;
53795379 def VUZPd16 : N2VDShuffle<0b01, 0b00010, "vuzp", "16">;
5380 def VUZPd32 : N2VDShuffle<0b10, 0b00010, "vuzp", "32">;
5380 // vuzp.32 Dd, Dm is a pseudo-instruction expanded to vtrn.32 Dd, Dm.
5381 def : NEONInstAlias<"vuzp${p}.32 $Dd, $Dm",
5382 (VTRNd32 DPR:$Dd, DPR:$Dm, pred:$p)>;
53815383
53825384 def VUZPq8 : N2VQShuffle<0b00, 0b00010, IIC_VPERMQ3, "vuzp", "8">;
53835385 def VUZPq16 : N2VQShuffle<0b01, 0b00010, IIC_VPERMQ3, "vuzp", "16">;
5959 vzip.16 q9, q8
6060 vzip.32 q9, q8
6161 vzip.32 d2, d3
62 vuzp.32 d2, d3
6263
6364 @ CHECK: vuzp.8 d17, d16 @ encoding: [0x20,0x11,0xf2,0xf3]
6465 @ CHECK: vuzp.16 d17, d16 @ encoding: [0x20,0x11,0xf6,0xf3]
7071 @ CHECK: vzip.8 q9, q8 @ encoding: [0xe0,0x21,0xf2,0xf3]
7172 @ CHECK: vzip.16 q9, q8 @ encoding: [0xe0,0x21,0xf6,0xf3]
7273 @ CHECK: vzip.32 q9, q8 @ encoding: [0xe0,0x21,0xfa,0xf3]
74 @ CHECK: vtrn.32 d2, d3 @ encoding: [0x83,0x20,0xba,0xf3]
7375 @ CHECK: vtrn.32 d2, d3 @ encoding: [0x83,0x20,0xba,0xf3]
7476
7577