Rafael Espindola | 4829ee4 | 2007-08-16 13:09:02 +0000 | [diff] [blame^] | 1 | ; RUN: llvm-as < %s | llc -march=x86-64 | grep movq.*8.*rsp.*rax |
2 | |||||
3 | %struct.s = type { i64, i64, i64 } | ||||
4 | |||||
5 | define i64 @f(%struct.s* byval %a) { | ||||
6 | entry: | ||||
7 | %tmp2 = getelementptr %struct.s* %a, i32 0, i32 0 | ||||
8 | %tmp3 = load i64* %tmp2, align 8 | ||||
9 | ret i64 %tmp3 | ||||
10 | } |