[DAGCombiner] Eliminate dead stores to stack.
[llvm-complete.git] / test / CodeGen / X86 / byval7.ll
blob584a6a449fffc5449b35f9676c5a2b7489deb4dc
1 ; RUN: llc < %s -mtriple=i686-- -mcpu=yonah | FileCheck %s
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> }
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
21 declare void @t(i32, %struct.S* byval )