brintos

brintos / llvm-project-archived public Read only

0
0
Text · 4.0 KiB · bcb2818 Raw
109 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 { i16, i16, i16, i16, i16, i16, i16, i16,7                   i16, i16, i16, i16, i16, i16, i16, i16,8                   i16, i16, i16, i16, i16, i16, i16, i16,9                   i16, i16, i16, i16, i16, i16, i16, i16,10                   i16, i16, i16, i16, i16, i16, i16, i16,11                   i16, i16, i16, i16, i16, i16, i16, i16,12                   i16, i16, i16, i16, i16, i16, i16, i16,13                   i16, i16, i16, i16, i16, i16, i16, i16,14                   i16 }15 16 17define void @g(i16 signext  %a1, i16 signext  %a2, i16 signext  %a3,18; X64-LABEL: g:19; X64:       # %bb.0: # %entry20; X64-NEXT:    pushq %rbx21; X64-NEXT:    subq $288, %rsp # imm = 0x12022; X64-NEXT:    movw %di, {{[0-9]+}}(%rsp)23; X64-NEXT:    movw %si, {{[0-9]+}}(%rsp)24; X64-NEXT:    movw %dx, {{[0-9]+}}(%rsp)25; X64-NEXT:    movw %cx, {{[0-9]+}}(%rsp)26; X64-NEXT:    movw %r8w, {{[0-9]+}}(%rsp)27; X64-NEXT:    movw %r9w, {{[0-9]+}}(%rsp)28; X64-NEXT:    leaq {{[0-9]+}}(%rsp), %rbx29; X64-NEXT:    movl $16, %ecx30; X64-NEXT:    movq %rsp, %rdi31; X64-NEXT:    movq %rbx, %rsi32; X64-NEXT:    rep;movsq (%rsi), %es:(%rdi)33; X64-NEXT:    movzwl {{[0-9]+}}(%rsp), %eax34; X64-NEXT:    movw %ax, {{[0-9]+}}(%rsp)35; X64-NEXT:    callq f@PLT36; X64-NEXT:    movl $16, %ecx37; X64-NEXT:    movq %rsp, %rdi38; X64-NEXT:    movq %rbx, %rsi39; X64-NEXT:    rep;movsq (%rsi), %es:(%rdi)40; X64-NEXT:    movzwl {{[0-9]+}}(%rsp), %eax41; X64-NEXT:    movw %ax, {{[0-9]+}}(%rsp)42; X64-NEXT:    callq f@PLT43; X64-NEXT:    addq $288, %rsp # imm = 0x12044; X64-NEXT:    popq %rbx45; X64-NEXT:    retq46;47; X86-LABEL: g:48; X86:       # %bb.0: # %entry49; X86-NEXT:    pushl %ebp50; X86-NEXT:    movl %esp, %ebp51; X86-NEXT:    pushl %ebx52; X86-NEXT:    pushl %edi53; X86-NEXT:    pushl %esi54; X86-NEXT:    andl $-16, %esp55; X86-NEXT:    subl $288, %esp # imm = 0x12056; X86-NEXT:    movzwl 8(%ebp), %eax57; X86-NEXT:    movw %ax, {{[0-9]+}}(%esp)58; X86-NEXT:    movzwl 12(%ebp), %eax59; X86-NEXT:    movw %ax, {{[0-9]+}}(%esp)60; X86-NEXT:    movzwl 16(%ebp), %eax61; X86-NEXT:    movw %ax, {{[0-9]+}}(%esp)62; X86-NEXT:    movzwl 20(%ebp), %eax63; X86-NEXT:    movw %ax, {{[0-9]+}}(%esp)64; X86-NEXT:    movzwl 24(%ebp), %eax65; X86-NEXT:    movw %ax, {{[0-9]+}}(%esp)66; X86-NEXT:    movzwl 28(%ebp), %eax67; X86-NEXT:    movw %ax, {{[0-9]+}}(%esp)68; X86-NEXT:    leal {{[0-9]+}}(%esp), %ebx69; X86-NEXT:    movl $32, %ecx70; X86-NEXT:    movl %esp, %edi71; X86-NEXT:    movl %ebx, %esi72; X86-NEXT:    rep;movsl (%esi), %es:(%edi)73; X86-NEXT:    movzwl {{[0-9]+}}(%esp), %eax74; X86-NEXT:    movw %ax, {{[0-9]+}}(%esp)75; X86-NEXT:    calll f@PLT76; X86-NEXT:    movl $32, %ecx77; X86-NEXT:    movl %esp, %edi78; X86-NEXT:    movl %ebx, %esi79; X86-NEXT:    rep;movsl (%esi), %es:(%edi)80; X86-NEXT:    movzwl {{[0-9]+}}(%esp), %eax81; X86-NEXT:    movw %ax, {{[0-9]+}}(%esp)82; X86-NEXT:    calll f@PLT83; X86-NEXT:    leal -12(%ebp), %esp84; X86-NEXT:    popl %esi85; X86-NEXT:    popl %edi86; X86-NEXT:    popl %ebx87; X86-NEXT:    popl %ebp88; X86-NEXT:    retl89	 i16 signext  %a4, i16 signext  %a5, i16 signext  %a6) nounwind {90entry:91        %a = alloca %struct.s, align 1692        store i16 %a1, ptr %a, align 1693        %tmp2 = getelementptr %struct.s, ptr %a, i32 0, i32 194        store i16 %a2, ptr %tmp2, align 1695        %tmp4 = getelementptr %struct.s, ptr %a, i32 0, i32 296        store i16 %a3, ptr %tmp4, align 1697        %tmp6 = getelementptr %struct.s, ptr %a, i32 0, i32 398        store i16 %a4, ptr %tmp6, align 1699        %tmp8 = getelementptr %struct.s, ptr %a, i32 0, i32 4100        store i16 %a5, ptr %tmp8, align 16101        %tmp10 = getelementptr %struct.s, ptr %a, i32 0, i32 5102        store i16 %a6, ptr %tmp10, align 16103        call void @f(ptr byval(%struct.s) %a)104        call void @f(ptr byval(%struct.s) %a)105        ret void106}107 108declare void @f(ptr byval(%struct.s))109