Rafael Espindola | 03cbeb7 | 2007-09-14 15:48:13 +0000 | [diff] [blame] | 1 | ; 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 Espindola | 4829ee4 | 2007-08-16 13:09:02 +0000 | [diff] [blame] | 5 | |
6 | %struct.s = type { i64, i64, i64 } | ||||
7 | |||||
8 | define i64 @f(%struct.s* byval %a) { | ||||
9 | entry: | ||||
10 | %tmp2 = getelementptr %struct.s* %a, i32 0, i32 0 | ||||
11 | %tmp3 = load i64* %tmp2, align 8 | ||||
12 | ret i64 %tmp3 | ||||
13 | } |