Temporarily revert r58979 and related patch. It's causing a failure in X86 bootstrap:
[oota-llvm.git] / test / CodeGen / X86 / byval.ll
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
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 }