[llvm-commits] [llvm] r128884 - in /llvm/trunk: lib/Transforms/InstCombine/InstructionCombining.cpp test/Transforms/InstCombine/gep-addrspace.ll
Dan Gohman
gohman at apple.com
Tue Apr 5 10:26:30 PDT 2011
On Apr 5, 2011, at 7:29 AM, Nadav Rotem wrote:
>
> --- llvm/trunk/test/Transforms/InstCombine/gep-addrspace.ll (added)
> +++ llvm/trunk/test/Transforms/InstCombine/gep-addrspace.ll Tue Apr 5 09:29:52 2011
> @@ -0,0 +1,16 @@
> +; RUN: opt < %s -instcombine -S
> +
> +%myStruct = type { float, [3 x float], [4 x float], i32 }
> +
> +; make sure that we are not crashing when creating an illegal type
> +define void @func(%myStruct addrspace(1)* nocapture %p) nounwind {
> +ST:
> + %A = getelementptr inbounds %myStruct addrspace(1)* %p, i64 0
> + %B = bitcast %myStruct addrspace(1)* %A to %myStruct*
> + %C = getelementptr inbounds %myStruct* %B, i32 0, i32 1
> + %D = getelementptr inbounds [3 x float]* %C, i32 0, i32 2
> + %E = load float* %D, align 4
> + %F = fsub float %E, undef
> + ret void
> +}
Hello,
This testcase passes without the fix.
Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110405/2e576196/attachment.html>
More information about the llvm-commits
mailing list