Re-implement the main strength-reduction portion of LoopStrengthReduction.
[oota-llvm.git] / test / CodeGen / X86 / mmx-arg-passing2.ll
1 ; RUN: llc < %s -mtriple=x86_64-apple-darwin -mattr=+mmx,+sse2 | grep movq2dq | count 1
2 ; RUN: llc < %s -mtriple=x86_64-apple-darwin -mattr=+mmx,+sse2 | grep movdq2q | count 2
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         %tmp4 = tail call i32 (...)* @pass_v8qi( <8 x i8> %tmp3 ) nounwind
9         ret void
10 }
11
12 define void @t2(<8 x i8> %v1, <8 x i8> %v2) nounwind  {
13        %tmp3 = add <8 x i8> %v1, %v2
14        %tmp4 = tail call i32 (...)* @pass_v8qi( <8 x i8> %tmp3 ) nounwind
15        ret void
16 }
17
18 define void @t3() nounwind  {
19         call void @pass_v1di( <1 x i64> zeroinitializer )
20         ret void
21 }
22
23 declare i32 @pass_v8qi(...)
24 declare void @pass_v1di(<1 x i64>)