blob: a75214a6b084b9b85ef28634c1defc65c807d377 [file] [log] [blame]
Rafael Espindola03cbeb72007-09-14 15:48:13 +00001; RUN: llvm-as < %s | llc -march=x86-64 | grep {movq 8(%rsp), %rax}
2; RUN: llvm-as < %s | llc -march=x86 > %t
3; RUN: grep {movl 8(%esp), %edx} %t
4; RUN: grep {movl 4(%esp), %eax} %t
Rafael Espindola4829ee42007-08-16 13:09:02 +00005
6%struct.s = type { i64, i64, i64 }
7
8define i64 @f(%struct.s* byval %a) {
9entry:
10 %tmp2 = getelementptr %struct.s* %a, i32 0, i32 0
11 %tmp3 = load i64* %tmp2, align 8
12 ret i64 %tmp3
13}