blob: 98a26e47ab76c62c711f47c3ebef555287412005 [file] [log] [blame]
Evan Cheng255f20f2010-04-01 06:04:33 +00001; RUN: llc < %s -march=x86 -mcpu=yonah | FileCheck %s
Evan Cheng29286502008-01-23 23:17:41 +00002
Dan Gohman707e0182008-04-12 04:36:06 +00003 %struct.S = type { <2 x i64>, <2 x i64>, <2 x i64>, <2 x i64>,
Evan Cheng255f20f2010-04-01 06:04:33 +00004 <2 x i64>, <2 x i64>, <2 x i64>, <2 x i64>,
Dan Gohman707e0182008-04-12 04:36:06 +00005 <2 x i64> }
Evan Cheng29286502008-01-23 23:17:41 +00006
7define i32 @main() nounwind {
8entry:
Evan Cheng255f20f2010-04-01 06:04:33 +00009; CHECK: main:
10; CHECK: movl $1, (%esp)
Stuart Hastings03d58262011-03-10 00:25:53 +000011; CHECK: leal 16(%esp), %edi
Stuart Hastings03d58262011-03-10 00:25:53 +000012; CHECK: leal 160(%esp), %esi
13; CHECK: rep;movsl
Evan Cheng29286502008-01-23 23:17:41 +000014 %s = alloca %struct.S ; <%struct.S*> [#uses=2]
15 %tmp15 = getelementptr %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
21declare void @t(i32, %struct.S* byval )