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
This commit is contained in:
Duncan Sands 2012-10-24 07:17:20 +00:00
parent 1a5cc710ee
commit 747fcd58bc

View File

@ -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
}