<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Apr 5, 2011, at 7:29 AM, Nadav Rotem wrote:</div><blockquote type="cite"><div><font class="Apple-style-span" color="#000000"><br></font>--- llvm/trunk/test/Transforms/InstCombine/gep-addrspace.ll (added)<br>+++ llvm/trunk/test/Transforms/InstCombine/gep-addrspace.ll Tue Apr  5 09:29:52 2011<br>@@ -0,0 +1,16 @@<br>+; RUN: opt < %s -instcombine -S<br>+<br>+%myStruct = type { float, [3 x float], [4 x float], i32 }<br>+<br>+; make sure that we are not crashing when creating an illegal type<br>+define void @func(%myStruct addrspace(1)* nocapture %p) nounwind {<br>+ST:<br>+  %A = getelementptr inbounds %myStruct addrspace(1)* %p, i64 0<br>+  %B = bitcast %myStruct addrspace(1)* %A to %myStruct*<br>+  %C = getelementptr inbounds %myStruct* %B, i32 0, i32 1<br>+  %D = getelementptr inbounds [3 x float]* %C, i32 0, i32 2<br>+  %E = load float* %D, align 4<br>+  %F = fsub float %E, undef<br>+  ret void<br>+}<br></div></blockquote><div><br></div><div>Hello,</div><div><br></div>This testcase passes without the fix.</div><div><br></div><div>Dan</div><div><br></div></body></html>