blob: ac0bc094e56eed7204c3f8e136e14fb1b354f722 [file] [log] [blame]
Eric Christopher8f9145b2010-10-12 23:47:58 +00001; RUN: llc < %s -march=x86-64 | FileCheck -check-prefix=X86-64 %s
2; RUN: llc < %s -march=x86 | FileCheck -check-prefix=X86 %s
3
4; X86: movl 4(%esp), %eax
5; X86: movl 8(%esp), %edx
6
7; X86-64: movq 8(%rsp), %rax
Rafael Espindola24eb92e2007-08-16 13:09:02 +00008
9%struct.s = type { i64, i64, i64 }
10
11define i64 @f(%struct.s* byval %a) {
12entry:
13 %tmp2 = getelementptr %struct.s* %a, i32 0, i32 0
14 %tmp3 = load i64* %tmp2, align 8
15 ret i64 %tmp3
16}