ARM size suffix on VFP single-precision 'vmov' is optional.
[oota-llvm.git] / lib / Target / ARM / ARMInstrVFP.td
index 27e185f3ca3c081d5a3d66e561216ce3862f6a2c..7c0048af99bd0de737cb57aad383df0c4bdc1063 100644 (file)
@@ -1189,3 +1189,8 @@ def : VFP2InstAlias<"vmov${p}.f64 $Rt, $Rt2, $Dn",
                     (VMOVRRD GPR:$Rt, GPR:$Rt2, DPR:$Dn, pred:$p)>;
 def : VFP2InstAlias<"vmov${p}.f64 $Dn, $Rt, $Rt2",
                     (VMOVDRR DPR:$Dn, GPR:$Rt, GPR:$Rt2, pred:$p)>;
+
+// VMOVS doesn't need the .f32 to disambiguate from the NEON encoding the way
+// VMOVD does.
+def : VFP2InstAlias<"vmov${p} $Sd, $Sm",
+                    (VMOVS SPR:$Sd, SPR:$Sm, pred:$p)>;