[llvm-commits] [llvm] r166547 - /llvm/trunk/test/Transforms/InstCombine/cast.ll
Duncan Sands
baldrick at free.fr
Wed Oct 24 00:17:20 PDT 2012
Author: baldrick
Date: Wed Oct 24 02:17:20 2012
New Revision: 166547
URL: http://llvm.org/viewvc/llvm-project?rev=166547&view=rev
Log:
Add a testcase that would have noticed the typo fixed in commit 166475.
Modified:
llvm/trunk/test/Transforms/InstCombine/cast.ll
Modified: llvm/trunk/test/Transforms/InstCombine/cast.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/cast.ll?rev=166547&r1=166546&r2=166547&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/cast.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/cast.ll Wed Oct 24 02:17:20 2012
@@ -891,3 +891,12 @@
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
+}
More information about the llvm-commits
mailing list