[ARM] Prevent PerformVDIVCombine from combining a vcvt/vdiv with 8 lanes.
[oota-llvm.git] / test / CodeGen / ARM / vdiv_combine.ll
index 8c6e4ba350549a6b97c3db1f9d76a717e830dd9f..dbbf92efd22b1b82c39b152ad7356fe2c261c55f 100644 (file)
@@ -136,3 +136,11 @@ define <2 x double> @fix_i64_to_double(<2 x i64> %in) {
     ret <2 x double> %shift
 }
 
+; Don't combine with 8 lanes.  Just make sure things don't crash.
+; CHECK-LABEL: test7
+define <8 x float> @test7(<8 x i32> %in) nounwind {
+entry:
+  %vcvt.i = sitofp <8 x i32> %in to <8 x float>
+  %div.i = fdiv <8 x float> %vcvt.i, <float 8.0, float 8.0, float 8.0, float 8.0, float 8.0, float 8.0, float 8.0, float 8.0>
+  ret <8 x float> %div.i
+}