AVX-512: Fixed a bug in comparison of i1 vectors.
[oota-llvm.git] / test / CodeGen / X86 / 2011-10-21-widen-cmp.ll
index aa1a60026f43909e50fe4038da29eb80811a15bf..2fe645b078150cc441f450e70b3bc314dd6fd8b6 100644 (file)
@@ -28,3 +28,18 @@ entry:
   store <2 x double> %1, <2 x double>* undef
   ret void
 }
+
+; CHECK: mp_11193
+; CHECK: psraw   $15
+; CHECK: ret
+define void @mp_11193(<8 x float> * nocapture %aFOO, <8 x float>* nocapture %RET)
+nounwind {
+allocas:
+  %bincmp = fcmp olt <8 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 9.000000e+00, float 1.000000e+00, float 9.000000e+00, float 1.000000e+00> , <float 3.000000e+00, float 3.000000e+00, float 3.000000e+00, float 3.000000e+00, float 3.000000e+00, float 3.000000e+00, float 3.000000e+00, float 3.000000e+00>
+  %t = extractelement <8 x i1> %bincmp, i32 0
+  %ft = sitofp i1 %t to float
+  %pp = bitcast <8 x float>* %RET to float*
+  store float %ft, float* %pp
+  ret void
+}
+