diff options
Diffstat (limited to 'test/Transforms/InstCombine/2004-07-27-ConstantExprMul.ll')
-rw-r--r-- | test/Transforms/InstCombine/2004-07-27-ConstantExprMul.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/2004-07-27-ConstantExprMul.ll b/test/Transforms/InstCombine/2004-07-27-ConstantExprMul.ll new file mode 100644 index 0000000..819260b --- /dev/null +++ b/test/Transforms/InstCombine/2004-07-27-ConstantExprMul.ll @@ -0,0 +1,9 @@ +; RUN: opt < %s -instcombine -disable-output + +@p = weak global i32 0 ; <i32*> [#uses=1] + +define i32 @test(i32 %x) { + %y = mul i32 %x, ptrtoint (i32* @p to i32) ; <i32> [#uses=1] + ret i32 %y +} + |