Address issues found by Duncan during post-commit review of r177856.
[oota-llvm.git] / test / Transforms / InstCombine / 2004-07-27-ConstantExprMul.ll
index aa95320ac1f75184ab400e0e9fbbe435de24cce4..819260b60b127b8ac61495fc10bc35b63a1f2394 100644 (file)
@@ -1,8 +1,9 @@
-; RUN: llvm-as < %s | opt -instcombine -disable-output
+; RUN: opt < %s -instcombine -disable-output
 
-%p = weak global int 0
+@p = weak global i32 0          ; <i32*> [#uses=1]
 
-int %test(int %x) {
-       %y = mul int %x, cast (int* %p to int)
-       ret int %y
+define i32 @test(i32 %x) {
+        %y = mul i32 %x, ptrtoint (i32* @p to i32)              ; <i32> [#uses=1]
+        ret i32 %y
 }
+