84 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=x86_64-linux -mattr=-avx | FileCheck %s -check-prefix=X643; Win64 has not supported byval yet.4; RUN: llc < %s -mtriple=i686-- -mattr=-avx | FileCheck %s -check-prefix=X865 6%struct.s = type { i64, i64, i64, i64, i64, i64, i64, i64,7 i64, i64, i64, i64, i64, i64, i64, i64,8 i64 }9 10define void @g(i64 %a, i64 %b, i64 %c) nounwind {11; X64-LABEL: g:12; X64: # %bb.0: # %entry13; X64-NEXT: pushq %rbx14; X64-NEXT: subq $288, %rsp # imm = 0x12015; X64-NEXT: movq %rdi, {{[0-9]+}}(%rsp)16; X64-NEXT: movq %rsi, {{[0-9]+}}(%rsp)17; X64-NEXT: movq %rdx, {{[0-9]+}}(%rsp)18; X64-NEXT: leaq {{[0-9]+}}(%rsp), %rbx19; X64-NEXT: movl $17, %ecx20; X64-NEXT: movq %rsp, %rdi21; X64-NEXT: movq %rbx, %rsi22; X64-NEXT: rep;movsq (%rsi), %es:(%rdi)23; X64-NEXT: callq f@PLT24; X64-NEXT: movl $17, %ecx25; X64-NEXT: movq %rsp, %rdi26; X64-NEXT: movq %rbx, %rsi27; X64-NEXT: rep;movsq (%rsi), %es:(%rdi)28; X64-NEXT: callq f@PLT29; X64-NEXT: addq $288, %rsp # imm = 0x12030; X64-NEXT: popq %rbx31; X64-NEXT: retq32;33; X86-LABEL: g:34; X86: # %bb.0: # %entry35; X86-NEXT: pushl %ebp36; X86-NEXT: movl %esp, %ebp37; X86-NEXT: pushl %ebx38; X86-NEXT: pushl %edi39; X86-NEXT: pushl %esi40; X86-NEXT: andl $-16, %esp41; X86-NEXT: subl $288, %esp # imm = 0x12042; X86-NEXT: movl 12(%ebp), %eax43; X86-NEXT: movl %eax, {{[0-9]+}}(%esp)44; X86-NEXT: movl 8(%ebp), %eax45; X86-NEXT: movl %eax, {{[0-9]+}}(%esp)46; X86-NEXT: movl 20(%ebp), %eax47; X86-NEXT: movl %eax, {{[0-9]+}}(%esp)48; X86-NEXT: movl 16(%ebp), %eax49; X86-NEXT: movl %eax, {{[0-9]+}}(%esp)50; X86-NEXT: movl 28(%ebp), %eax51; X86-NEXT: movl %eax, {{[0-9]+}}(%esp)52; X86-NEXT: movl 24(%ebp), %eax53; X86-NEXT: movl %eax, {{[0-9]+}}(%esp)54; X86-NEXT: leal {{[0-9]+}}(%esp), %ebx55; X86-NEXT: movl $34, %ecx56; X86-NEXT: movl %esp, %edi57; X86-NEXT: movl %ebx, %esi58; X86-NEXT: rep;movsl (%esi), %es:(%edi)59; X86-NEXT: calll f@PLT60; X86-NEXT: movl $34, %ecx61; X86-NEXT: movl %esp, %edi62; X86-NEXT: movl %ebx, %esi63; X86-NEXT: rep;movsl (%esi), %es:(%edi)64; X86-NEXT: calll f@PLT65; X86-NEXT: leal -12(%ebp), %esp66; X86-NEXT: popl %esi67; X86-NEXT: popl %edi68; X86-NEXT: popl %ebx69; X86-NEXT: popl %ebp70; X86-NEXT: retl71entry:72 %d = alloca %struct.s, align 1673 store i64 %a, ptr %d, align 1674 %tmp2 = getelementptr %struct.s, ptr %d, i32 0, i32 175 store i64 %b, ptr %tmp2, align 1676 %tmp4 = getelementptr %struct.s, ptr %d, i32 0, i32 277 store i64 %c, ptr %tmp4, align 1678 call void @f(ptr byval(%struct.s) %d)79 call void @f(ptr byval(%struct.s) %d)80 ret void81}82 83declare void @f(ptr byval(%struct.s))84