InstCombine: Don't assume that m_ZExt matches an Instruction
[oota-llvm.git] / test / Transforms / InstCombine / pr8547.ll
index f26035c8d6282aa82642e035a849e580f85c35f2..7e9cbe17b68d2fa3a703b21e2d52f220a8327bbf 100644 (file)
@@ -15,7 +15,7 @@ for.cond:                                         ; preds = %for.cond, %codeRepl
   store i32 %storemerge, i32* @g_2, align 4
   %shl = shl i32 %storemerge, 30
   %conv2 = lshr i32 %shl, 24
-; CHECK:  %0 = shl i32 %storemerge, 6
+; CHECK:  %0 = shl nuw nsw i32 %storemerge, 6
 ; CHECK:  %conv2 = and i32 %0, 64
   %tobool = icmp eq i32 %conv2, 0
   br i1 %tobool, label %for.cond, label %codeRepl2
@@ -23,4 +23,4 @@ for.cond:                                         ; preds = %for.cond, %codeRepl
 codeRepl2:                                        ; preds = %for.cond
   %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([10 x i8]* @.str, i64 0, i64 0), i32 %conv2) nounwind
   ret i32 0
-}
\ No newline at end of file
+}