summaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/cast.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-01-31 05:51:18 +0000
committerChris Lattner <sabre@nondot.org>2005-01-31 05:51:18 +0000
commit0f991191eb3303d6efcc2d05c0c0dc2338362e29 (patch)
treed9d1e0906061efd75ae70ae872125fea52f39f89 /test/Transforms/InstCombine/cast.ll
parent7a4f03dda74ca8d71cd8985edad5362c66f23cdf (diff)
downloadllvm-0f991191eb3303d6efcc2d05c0c0dc2338362e29.tar.gz
llvm-0f991191eb3303d6efcc2d05c0c0dc2338362e29.tar.bz2
llvm-0f991191eb3303d6efcc2d05c0c0dc2338362e29.tar.xz
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19952 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine/cast.ll')
-rw-r--r--test/Transforms/InstCombine/cast.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/cast.ll b/test/Transforms/InstCombine/cast.ll
index dc3f6a7201..fb0b899ef1 100644
--- a/test/Transforms/InstCombine/cast.ll
+++ b/test/Transforms/InstCombine/cast.ll
@@ -155,3 +155,9 @@ bool %test24(bool %C) {
ret bool %c
}
+void %test25(int** %P) {
+ %c = cast int** %P to float**
+ store float* null, float** %c ;; Fold cast into null
+ ret void
+}
+