blob: af36e1bb8cb4c2afcc2e883b93c3f7434dd6fbe3 [file] [log] [blame]
Dan Gohman0a063102009-09-08 23:54:48 +00001; RUN: llc < %s -march=x86-64 | grep {movq 8(%rsp), %rax}
2; RUN: llc < %s -march=x86 > %t
Rafael Espindola03cbeb72007-09-14 15:48:13 +00003; 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}