diff options
author | Duncan Sands <baldrick@free.fr> | 2012-10-24 07:17:20 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2012-10-24 07:17:20 +0000 |
commit | 747fcd58bcb73cf6ef8cb3a464a0dde4fcb95496 (patch) | |
tree | 184621b0a94684cb5ffd5544d0eec6b361ef947c | |
parent | 1a5cc710ee78bf55c3799b49c6fd37619d2dbb7b (diff) |
Add a testcase that would have noticed the typo fixed in commit 166475.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166547 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Transforms/InstCombine/cast.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/cast.ll b/test/Transforms/InstCombine/cast.ll index 899ffddd5b..b4eb69d436 100644 --- a/test/Transforms/InstCombine/cast.ll +++ b/test/Transforms/InstCombine/cast.ll @@ -891,3 +891,12 @@ define double @test80([100 x double]* %p, i32 %i) { ret double %l ; CHECK-NEXT: ret double } + +define double @test81(double *%p, float %f) { + %i = fptosi float %f to i64 + %q = bitcast double* %p to i8* + %pp = getelementptr i8* %q, i64 %i + %r = bitcast i8* %pp to double* + %l = load double* %r + ret double %l +} |