InstCombine: canonicalize sext-and --> select
[oota-llvm.git] / test / Transforms / InstCombine / vector-casts.ll
index 7bbf53c270f48bd6789238973776e47840621987..2f2990b7b055511da9b3d25629f32024a0b2d725 100644 (file)
@@ -64,7 +64,8 @@ entry:
         
 ; CHECK: @test5
 ; CHECK:   sext <4 x i1> %cmp to <4 x i32>     
-; CHECK:   sext <4 x i1> %cmp4 to <4 x i32>    
+; The sext-and pair is canonicalized to a select.
+; CHECK:   select <4 x i1> %cmp4, <4 x i32>    %sext, <4 x i32> zeroinitializer
 }