brintos

brintos / llvm-project-archived public Read only

0
0
Text · 4.3 KiB · 28deafc Raw
116 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 { i8, i8, i8, i8, i8, i8, i8, i8,7                   i8, i8, i8, i8, i8, i8, i8, i8,8                   i8, i8, i8, i8, i8, i8, i8, i8,9                   i8, i8, i8, i8, i8, i8, i8, i8,10                   i8, i8, i8, i8, i8, i8, i8, i8,11                   i8, i8, i8, i8, i8, i8, i8, i8,12                   i8, i8, i8, i8, i8, i8, i8, i8,13                   i8, i8, i8, i8, i8, i8, i8, i8,14                   i8, i8, i8, i8, i8, i8, i8, i8,15                   i8, i8, i8, i8, i8, i8, i8, i8,16                   i8, i8, i8, i8, i8, i8, i8, i8,17                   i8, i8, i8, i8, i8, i8, i8, i8,18                   i8, i8, i8, i8, i8, i8, i8, i8,19                   i8, i8, i8, i8, i8, i8, i8, i8,20                   i8, i8, i8, i8, i8, i8, i8, i8,21                   i8, i8, i8, i8, i8, i8, i8, i8,22                   i8 }23 24 25define void @g(i8 signext  %a1, i8 signext  %a2, i8 signext  %a3, i8 signext  %a4, i8 signext  %a5, i8 signext  %a6) nounwind {26; X64-LABEL: g:27; X64:       # %bb.0: # %entry28; X64-NEXT:    pushq %rbx29; X64-NEXT:    subq $272, %rsp # imm = 0x11030; X64-NEXT:    movb %dil, {{[0-9]+}}(%rsp)31; X64-NEXT:    movb %sil, {{[0-9]+}}(%rsp)32; X64-NEXT:    movb %dl, {{[0-9]+}}(%rsp)33; X64-NEXT:    movb %cl, {{[0-9]+}}(%rsp)34; X64-NEXT:    movb %r8b, {{[0-9]+}}(%rsp)35; X64-NEXT:    movb %r9b, {{[0-9]+}}(%rsp)36; X64-NEXT:    leaq {{[0-9]+}}(%rsp), %rbx37; X64-NEXT:    movl $16, %ecx38; X64-NEXT:    movq %rsp, %rdi39; X64-NEXT:    movq %rbx, %rsi40; X64-NEXT:    rep;movsq (%rsi), %es:(%rdi)41; X64-NEXT:    movzbl {{[0-9]+}}(%rsp), %eax42; X64-NEXT:    movb %al, {{[0-9]+}}(%rsp)43; X64-NEXT:    callq f@PLT44; X64-NEXT:    movl $16, %ecx45; X64-NEXT:    movq %rsp, %rdi46; X64-NEXT:    movq %rbx, %rsi47; X64-NEXT:    rep;movsq (%rsi), %es:(%rdi)48; X64-NEXT:    movzbl {{[0-9]+}}(%rsp), %eax49; X64-NEXT:    movb %al, {{[0-9]+}}(%rsp)50; X64-NEXT:    callq f@PLT51; X64-NEXT:    addq $272, %rsp # imm = 0x11052; X64-NEXT:    popq %rbx53; X64-NEXT:    retq54;55; X86-LABEL: g:56; X86:       # %bb.0: # %entry57; X86-NEXT:    pushl %ebp58; X86-NEXT:    movl %esp, %ebp59; X86-NEXT:    pushl %ebx60; X86-NEXT:    pushl %edi61; X86-NEXT:    pushl %esi62; X86-NEXT:    andl $-8, %esp63; X86-NEXT:    subl $272, %esp # imm = 0x11064; X86-NEXT:    movzbl 28(%ebp), %eax65; X86-NEXT:    movzbl 24(%ebp), %ecx66; X86-NEXT:    movzbl 20(%ebp), %edx67; X86-NEXT:    movb 16(%ebp), %ah68; X86-NEXT:    movb 12(%ebp), %ch69; X86-NEXT:    movb 8(%ebp), %dh70; X86-NEXT:    movb %dh, {{[0-9]+}}(%esp)71; X86-NEXT:    movb %ch, {{[0-9]+}}(%esp)72; X86-NEXT:    movb %ah, {{[0-9]+}}(%esp)73; X86-NEXT:    movb %dl, {{[0-9]+}}(%esp)74; X86-NEXT:    movb %cl, {{[0-9]+}}(%esp)75; X86-NEXT:    movb %al, {{[0-9]+}}(%esp)76; X86-NEXT:    leal {{[0-9]+}}(%esp), %ebx77; X86-NEXT:    movl $32, %ecx78; X86-NEXT:    movl %esp, %edi79; X86-NEXT:    movl %ebx, %esi80; X86-NEXT:    rep;movsl (%esi), %es:(%edi)81; X86-NEXT:    movzbl {{[0-9]+}}(%esp), %eax82; X86-NEXT:    movb %al, {{[0-9]+}}(%esp)83; X86-NEXT:    calll f@PLT84; X86-NEXT:    movl $32, %ecx85; X86-NEXT:    movl %esp, %edi86; X86-NEXT:    movl %ebx, %esi87; X86-NEXT:    rep;movsl (%esi), %es:(%edi)88; X86-NEXT:    movzbl {{[0-9]+}}(%esp), %eax89; X86-NEXT:    movb %al, {{[0-9]+}}(%esp)90; X86-NEXT:    calll f@PLT91; X86-NEXT:    leal -12(%ebp), %esp92; X86-NEXT:    popl %esi93; X86-NEXT:    popl %edi94; X86-NEXT:    popl %ebx95; X86-NEXT:    popl %ebp96; X86-NEXT:    retl97entry:98        %a = alloca %struct.s99        store i8 %a1, ptr %a, align 8100        %tmp2 = getelementptr %struct.s, ptr %a, i32 0, i32 1101        store i8 %a2, ptr %tmp2, align 8102        %tmp4 = getelementptr %struct.s, ptr %a, i32 0, i32 2103        store i8 %a3, ptr %tmp4, align 8104        %tmp6 = getelementptr %struct.s, ptr %a, i32 0, i32 3105        store i8 %a4, ptr %tmp6, align 8106        %tmp8 = getelementptr %struct.s, ptr %a, i32 0, i32 4107        store i8 %a5, ptr %tmp8, align 8108        %tmp10 = getelementptr %struct.s, ptr %a, i32 0, i32 5109        store i8 %a6, ptr %tmp10, align 8110        call void @f(ptr byval(%struct.s) %a)111        call void @f(ptr byval(%struct.s) %a)112        ret void113}114 115declare void @f(ptr byval(%struct.s))116