From bdb79e61728fed2580f906d1e46ab70b3039279e Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 28 Feb 2003 19:13:58 +0000 Subject: [PATCH] New testcase llvm-svn: 5672 --- .../LICM/2003-02-28-PromoteDifferentType.ll | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/Regression/Transforms/LICM/2003-02-28-PromoteDifferentType.ll diff --git a/test/Regression/Transforms/LICM/2003-02-28-PromoteDifferentType.ll b/test/Regression/Transforms/LICM/2003-02-28-PromoteDifferentType.ll new file mode 100644 index 00000000000..a0ba69d849d --- /dev/null +++ b/test/Regression/Transforms/LICM/2003-02-28-PromoteDifferentType.ll @@ -0,0 +1,15 @@ +; Test that hoisting is disabled for pointers of different types... +; +; RUN: as < %s | opt -licm + +void %test(int* %P) { + br label %Loop +Loop: + store int 5, int* %P + %P2 = cast int* %P to sbyte* + store sbyte 4, sbyte* %P2 + br bool true, label %loop, label %Out +Out: + ret void +} +