Home | History | Annotate | Download | only in X86
      1 ; RUN: llc < %s -mtriple=x86_64-apple-darwin -mattr=+mmx,+sse2 | grep movdq2q | count 2
      2 ; Since the add is not an MMX add, we don't have a movq2dq any more.
      3 
      4 @g_v8qi = external global <8 x i8>
      5 
      6 define void @t1() nounwind  {
      7 	%tmp3 = load <8 x i8>* @g_v8qi, align 8
      8         %tmp3a = bitcast <8 x i8> %tmp3 to x86_mmx
      9 	%tmp4 = tail call i32 (...)* @pass_v8qi( x86_mmx %tmp3a ) nounwind
     10 	ret void
     11 }
     12 
     13 define void @t2(x86_mmx %v1, x86_mmx %v2) nounwind  {
     14        %v1a = bitcast x86_mmx %v1 to <8 x i8>
     15        %v2b = bitcast x86_mmx %v2 to <8 x i8>
     16        %tmp3 = add <8 x i8> %v1a, %v2b
     17        %tmp3a = bitcast <8 x i8> %tmp3 to x86_mmx
     18        %tmp4 = tail call i32 (...)* @pass_v8qi( x86_mmx %tmp3a ) nounwind
     19        ret void
     20 }
     21 
     22 define void @t3() nounwind  {
     23 	call void @pass_v1di( <1 x i64> zeroinitializer )
     24         ret void
     25 }
     26 
     27 declare i32 @pass_v8qi(...)
     28 declare void @pass_v1di(<1 x i64>)
     29