Add a testcase that would have noticed the typo fixed in commit 166475.

llvm-svn: 166547
This commit is contained in:
Duncan Sands 2012-10-24 07:17:20 +00:00
parent 18e40965aa
commit 1f4e159b01

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
}