[TwoAddressInstructionPass] When looking for a 3 addr conversion after commuting...
[oota-llvm.git] / test / CodeGen / X86 / byval7.ll
1 ; RUN: llc < %s -march=x86 -mcpu=yonah | FileCheck %s
2
3         %struct.S = type { <2 x i64>, <2 x i64>, <2 x i64>, <2 x i64>,
4                            <2 x i64>, <2 x i64>, <2 x i64>, <2 x i64>,
5                            <2 x i64> }
6
7 define i32 @main() nounwind  {
8 entry:
9 ; CHECK-LABEL: main:
10 ; CHECK: leal 16(%esp), %edi
11 ; CHECK: leal 160(%esp), %esi
12 ; CHECK: rep;movsl
13 ; CHECK: movl $1, (%esp)
14         %s = alloca %struct.S           ; <%struct.S*> [#uses=2]
15         %tmp15 = getelementptr %struct.S, %struct.S* %s, i32 0, i32 0           ; <<2 x i64>*> [#uses=1]
16         store <2 x i64> < i64 8589934595, i64 1 >, <2 x i64>* %tmp15, align 16
17         call void @t( i32 1, %struct.S* byval  %s ) nounwind
18         ret i32 0
19 }
20
21 declare void @t(i32, %struct.S* byval )