fix an ambiguous pattern, contrary to expectations, scalar_to_vector
authorChris Lattner <sabre@nondot.org>
Mon, 15 Mar 2010 00:52:43 +0000 (00:52 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 15 Mar 2010 00:52:43 +0000 (00:52 +0000)
doesn't have a type constraint on the scalar because we don't have
an 'sAny' type.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98527 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMInstrNEON.td

index ca85df9a459abffc6449f9173692cb73873e6679..8fee6fa9527a77ae8da9f3d47056859ef5248648 100644 (file)
@@ -2708,7 +2708,7 @@ def : Pat<(v2f64 (insertelt QPR:$src1, DPR:$src2, imm:$src3)),
 
 def : Pat<(v2f32 (scalar_to_vector SPR:$src)),
           (INSERT_SUBREG (v2f32 (IMPLICIT_DEF)), SPR:$src, arm_ssubreg_0)>;
-def : Pat<(v2f64 (scalar_to_vector DPR:$src)),
+def : Pat<(v2f64 (scalar_to_vector (f64 DPR:$src))),
           (INSERT_SUBREG (v2f64 (IMPLICIT_DEF)), DPR:$src, arm_dsubreg_0)>;
 def : Pat<(v4f32 (scalar_to_vector SPR:$src)),
           (INSERT_SUBREG (v4f32 (IMPLICIT_DEF)), SPR:$src, arm_ssubreg_0)>;