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