diff options
author | Chris Lattner <sabre@nondot.org> | 2003-02-28 19:13:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-02-28 19:13:58 +0000 |
commit | 86ca0c1f8bc3bb7cc73f67f2821c53fa1f5d9130 (patch) | |
tree | e9e5d85a33290e58af44ec5c8b0d2c5126dba88b /test/Transforms/LICM | |
parent | bb05f1ee9317fa984519cd8d5079a444d5d5df2c (diff) |
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5672 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/LICM')
-rw-r--r-- | test/Transforms/LICM/2003-02-28-PromoteDifferentType.ll | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/Transforms/LICM/2003-02-28-PromoteDifferentType.ll b/test/Transforms/LICM/2003-02-28-PromoteDifferentType.ll new file mode 100644 index 0000000000..a0ba69d849 --- /dev/null +++ b/test/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 +} + |