Try to reuse the value when lowering memset.
[oota-llvm.git] / test / CodeGen / X86 / memset-2.ll
index 11f619cd6da4a0a28e11201beddc7781bafc2440..ae6b6e9772b927293d1ea6850186fe7cc1fa8d29 100644 (file)
@@ -28,3 +28,12 @@ entry:
 ; CHECK: imull $16843009
 }
 
+define void @t4(i8* nocapture %s, i8 %a) nounwind {
+entry:
+  tail call void @llvm.memset.p0i8.i32(i8* %s, i8 %a, i32 15, i32 1, i1 false)
+  ret void
+; CHECK: t4:
+; CHECK: imull $16843009
+; CHECK-NOT: imul
+; CHECK: ret
+}