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