Add support for code generation of the one register with immediate form of vorr.
[oota-llvm.git] / test / Transforms / GVN / 2008-02-24-NonDominatedMemcpy.ll
1 ; RUN: opt < %s -gvn -dse -S | grep {call.*memcpy} | count 1
2
3 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128"
4 target triple = "x86_64-apple-darwin8"
5         %struct.ggFrame3 = type { %struct.ggPoint3, %struct.ggONB3 }
6         %struct.ggHMatrix3 = type { [4 x [4 x double]] }
7         %struct.ggONB3 = type { %struct.ggPoint3, %struct.ggPoint3, %struct.ggPoint3 }
8         %struct.ggPoint3 = type { [3 x double] }
9         %struct.ggQuaternion = type { [4 x double], i32, %struct.ggHMatrix3 }
10
11 declare void @llvm.memcpy.i64(i8*, i8*, i64, i32) nounwind 
12
13 define void @_Z10ggCRSplineRK8ggFrame3S1_S1_S1_d(%struct.ggFrame3* noalias sret  %agg.result, %struct.ggFrame3* %f0, %struct.ggFrame3* %f1, %struct.ggFrame3* %f2, %struct.ggFrame3* %f3, double %t) nounwind  {
14 entry:
15         %qresult = alloca %struct.ggQuaternion          ; <%struct.ggQuaternion*> [#uses=1]
16         %tmp = alloca %struct.ggONB3            ; <%struct.ggONB3*> [#uses=2]
17         call void @_ZN12ggQuaternion7getONB3Ev( %struct.ggONB3* noalias sret  %tmp, %struct.ggQuaternion* %qresult ) nounwind 
18         %tmp1.i = getelementptr %struct.ggFrame3* %agg.result, i32 0, i32 1             ; <%struct.ggONB3*> [#uses=1]
19         %tmp13.i = bitcast %struct.ggONB3* %tmp1.i to i8*               ; <i8*> [#uses=1]
20         %tmp24.i = bitcast %struct.ggONB3* %tmp to i8*          ; <i8*> [#uses=1]
21         call void @llvm.memcpy.i64( i8* %tmp13.i, i8* %tmp24.i, i64 72, i32 8 ) nounwind 
22         ret void
23 }
24
25 declare void @_ZN12ggQuaternion7getONB3Ev(%struct.ggONB3* noalias sret , %struct.ggQuaternion*) nounwind