Dan Gohman | 0a06310 | 2009-09-08 23:54:48 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -march=x86-64 | grep {movq 8(%rsp), %rax} |
| 2 | ; RUN: llc < %s -march=x86 > %t |
Rafael Espindola | 03cbeb7 | 2007-09-14 15:48:13 +0000 | [diff] [blame] | 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 | } |