; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
-; RUN: llc < %s -mtriple=x86_64-linux | FileCheck -check-prefix=X86-64 %s
+; RUN: llc < %s -mtriple=x86_64-linux | FileCheck -check-prefix=X64 %s
; Win64 has not supported byval yet.
; RUN: llc < %s -mtriple=i686-- | FileCheck -check-prefix=X86 %s
%struct.s = type { i64, i64, i64 }
define i64 @f(%struct.s* byval %a) {
-; X86-64-LABEL: f:
-; X86-64: # %bb.0: # %entry
-; X86-64-NEXT: movq 8(%rsp), %rax
-; X86-64-NEXT: retq
+; X64-LABEL: f:
+; X64: # %bb.0: # %entry
+; X64-NEXT: movq 8(%rsp), %rax
+; X64-NEXT: retq
;
; X86-LABEL: f:
; X86: # %bb.0: # %entry
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc < %s -mtriple=x86_64-linux -mattr=-avx | FileCheck %s -check-prefix=X64
; Win64 has not supported byval yet.
-; RUN: llc < %s -mtriple=i686-- -mattr=-avx | FileCheck %s -check-prefix=X32
+; RUN: llc < %s -mtriple=i686-- -mattr=-avx | FileCheck %s -check-prefix=X86
%struct.s = type { i64, i64, i64, i64, i64, i64, i64, i64,
i64, i64, i64, i64, i64, i64, i64, i64,
; X64-NEXT: popq %rbx
; X64-NEXT: retq
;
-; X32-LABEL: g:
-; X32: # %bb.0: # %entry
-; X32-NEXT: pushl %ebp
-; X32-NEXT: movl %esp, %ebp
-; X32-NEXT: pushl %ebx
-; X32-NEXT: pushl %edi
-; X32-NEXT: pushl %esi
-; X32-NEXT: andl $-16, %esp
-; X32-NEXT: subl $288, %esp # imm = 0x120
-; X32-NEXT: movl 12(%ebp), %eax
-; X32-NEXT: movl %eax, {{[0-9]+}}(%esp)
-; X32-NEXT: movl 8(%ebp), %eax
-; X32-NEXT: movl %eax, {{[0-9]+}}(%esp)
-; X32-NEXT: movl 20(%ebp), %eax
-; X32-NEXT: movl %eax, {{[0-9]+}}(%esp)
-; X32-NEXT: movl 16(%ebp), %eax
-; X32-NEXT: movl %eax, {{[0-9]+}}(%esp)
-; X32-NEXT: movl 28(%ebp), %eax
-; X32-NEXT: movl %eax, {{[0-9]+}}(%esp)
-; X32-NEXT: movl 24(%ebp), %eax
-; X32-NEXT: movl %eax, {{[0-9]+}}(%esp)
-; X32-NEXT: leal {{[0-9]+}}(%esp), %ebx
-; X32-NEXT: movl $34, %ecx
-; X32-NEXT: movl %esp, %edi
-; X32-NEXT: movl %ebx, %esi
-; X32-NEXT: rep;movsl (%esi), %es:(%edi)
-; X32-NEXT: calll f
-; X32-NEXT: movl $34, %ecx
-; X32-NEXT: movl %esp, %edi
-; X32-NEXT: movl %ebx, %esi
-; X32-NEXT: rep;movsl (%esi), %es:(%edi)
-; X32-NEXT: calll f
-; X32-NEXT: leal -12(%ebp), %esp
-; X32-NEXT: popl %esi
-; X32-NEXT: popl %edi
-; X32-NEXT: popl %ebx
-; X32-NEXT: popl %ebp
-; X32-NEXT: retl
+; X86-LABEL: g:
+; X86: # %bb.0: # %entry
+; X86-NEXT: pushl %ebp
+; X86-NEXT: movl %esp, %ebp
+; X86-NEXT: pushl %ebx
+; X86-NEXT: pushl %edi
+; X86-NEXT: pushl %esi
+; X86-NEXT: andl $-16, %esp
+; X86-NEXT: subl $288, %esp # imm = 0x120
+; X86-NEXT: movl 12(%ebp), %eax
+; X86-NEXT: movl %eax, {{[0-9]+}}(%esp)
+; X86-NEXT: movl 8(%ebp), %eax
+; X86-NEXT: movl %eax, {{[0-9]+}}(%esp)
+; X86-NEXT: movl 20(%ebp), %eax
+; X86-NEXT: movl %eax, {{[0-9]+}}(%esp)
+; X86-NEXT: movl 16(%ebp), %eax
+; X86-NEXT: movl %eax, {{[0-9]+}}(%esp)
+; X86-NEXT: movl 28(%ebp), %eax
+; X86-NEXT: movl %eax, {{[0-9]+}}(%esp)
+; X86-NEXT: movl 24(%ebp), %eax
+; X86-NEXT: movl %eax, {{[0-9]+}}(%esp)
+; X86-NEXT: leal {{[0-9]+}}(%esp), %ebx
+; X86-NEXT: movl $34, %ecx
+; X86-NEXT: movl %esp, %edi
+; X86-NEXT: movl %ebx, %esi
+; X86-NEXT: rep;movsl (%esi), %es:(%edi)
+; X86-NEXT: calll f
+; X86-NEXT: movl $34, %ecx
+; X86-NEXT: movl %esp, %edi
+; X86-NEXT: movl %ebx, %esi
+; X86-NEXT: rep;movsl (%esi), %es:(%edi)
+; X86-NEXT: calll f
+; X86-NEXT: leal -12(%ebp), %esp
+; X86-NEXT: popl %esi
+; X86-NEXT: popl %edi
+; X86-NEXT: popl %ebx
+; X86-NEXT: popl %ebp
+; X86-NEXT: retl
entry:
%d = alloca %struct.s, align 16
%tmp = getelementptr %struct.s, %struct.s* %d, i32 0, i32 0
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc < %s -mtriple=x86_64-linux -mattr=-avx | FileCheck %s -check-prefix=X64
; Win64 has not supported byval yet.
-; RUN: llc < %s -mtriple=i686-- -mattr=-avx | FileCheck %s -check-prefix=X32
+; RUN: llc < %s -mtriple=i686-- -mattr=-avx | FileCheck %s -check-prefix=X86
%struct.s = type { i32, i32, i32, i32, i32, i32, i32, i32,
i32, i32, i32, i32, i32, i32, i32, i32,
; X64-NEXT: popq %rbx
; X64-NEXT: retq
;
-; X32-LABEL: g:
-; X32: # %bb.0: # %entry
-; X32-NEXT: pushl %ebp
-; X32-NEXT: movl %esp, %ebp
-; X32-NEXT: pushl %ebx
-; X32-NEXT: pushl %edi
-; X32-NEXT: pushl %esi
-; X32-NEXT: andl $-16, %esp
-; X32-NEXT: subl $288, %esp # imm = 0x120
-; X32-NEXT: movl 8(%ebp), %eax
-; X32-NEXT: movl %eax, {{[0-9]+}}(%esp)
-; X32-NEXT: movl 12(%ebp), %eax
-; X32-NEXT: movl %eax, {{[0-9]+}}(%esp)
-; X32-NEXT: movl 16(%ebp), %eax
-; X32-NEXT: movl %eax, {{[0-9]+}}(%esp)
-; X32-NEXT: movl 20(%ebp), %eax
-; X32-NEXT: movl %eax, {{[0-9]+}}(%esp)
-; X32-NEXT: movl 24(%ebp), %eax
-; X32-NEXT: movl %eax, {{[0-9]+}}(%esp)
-; X32-NEXT: movl 28(%ebp), %eax
-; X32-NEXT: movl %eax, {{[0-9]+}}(%esp)
-; X32-NEXT: leal {{[0-9]+}}(%esp), %ebx
-; X32-NEXT: movl $33, %ecx
-; X32-NEXT: movl %esp, %edi
-; X32-NEXT: movl %ebx, %esi
-; X32-NEXT: rep;movsl (%esi), %es:(%edi)
-; X32-NEXT: calll f
-; X32-NEXT: movl $33, %ecx
-; X32-NEXT: movl %esp, %edi
-; X32-NEXT: movl %ebx, %esi
-; X32-NEXT: rep;movsl (%esi), %es:(%edi)
-; X32-NEXT: calll f
-; X32-NEXT: leal -12(%ebp), %esp
-; X32-NEXT: popl %esi
-; X32-NEXT: popl %edi
-; X32-NEXT: popl %ebx
-; X32-NEXT: popl %ebp
-; X32-NEXT: retl
+; X86-LABEL: g:
+; X86: # %bb.0: # %entry
+; X86-NEXT: pushl %ebp
+; X86-NEXT: movl %esp, %ebp
+; X86-NEXT: pushl %ebx
+; X86-NEXT: pushl %edi
+; X86-NEXT: pushl %esi
+; X86-NEXT: andl $-16, %esp
+; X86-NEXT: subl $288, %esp # imm = 0x120
+; X86-NEXT: movl 8(%ebp), %eax
+; X86-NEXT: movl %eax, {{[0-9]+}}(%esp)
+; X86-NEXT: movl 12(%ebp), %eax
+; X86-NEXT: movl %eax, {{[0-9]+}}(%esp)
+; X86-NEXT: movl 16(%ebp), %eax
+; X86-NEXT: movl %eax, {{[0-9]+}}(%esp)
+; X86-NEXT: movl 20(%ebp), %eax
+; X86-NEXT: movl %eax, {{[0-9]+}}(%esp)
+; X86-NEXT: movl 24(%ebp), %eax
+; X86-NEXT: movl %eax, {{[0-9]+}}(%esp)
+; X86-NEXT: movl 28(%ebp), %eax
+; X86-NEXT: movl %eax, {{[0-9]+}}(%esp)
+; X86-NEXT: leal {{[0-9]+}}(%esp), %ebx
+; X86-NEXT: movl $33, %ecx
+; X86-NEXT: movl %esp, %edi
+; X86-NEXT: movl %ebx, %esi
+; X86-NEXT: rep;movsl (%esi), %es:(%edi)
+; X86-NEXT: calll f
+; X86-NEXT: movl $33, %ecx
+; X86-NEXT: movl %esp, %edi
+; X86-NEXT: movl %ebx, %esi
+; X86-NEXT: rep;movsl (%esi), %es:(%edi)
+; X86-NEXT: calll f
+; X86-NEXT: leal -12(%ebp), %esp
+; X86-NEXT: popl %esi
+; X86-NEXT: popl %edi
+; X86-NEXT: popl %ebx
+; X86-NEXT: popl %ebp
+; X86-NEXT: retl
entry:
%d = alloca %struct.s, align 16
%tmp = getelementptr %struct.s, %struct.s* %d, i32 0, i32 0
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc < %s -mtriple=x86_64-linux -mattr=-avx | FileCheck %s -check-prefix=X64
; Win64 has not supported byval yet.
-; RUN: llc < %s -mtriple=i686-- -mattr=-avx | FileCheck %s -check-prefix=X32
+; RUN: llc < %s -mtriple=i686-- -mattr=-avx | FileCheck %s -check-prefix=X86
%struct.s = type { i16, i16, i16, i16, i16, i16, i16, i16,
i16, i16, i16, i16, i16, i16, i16, i16,
; X64-NEXT: popq %rbx
; X64-NEXT: retq
;
-; X32-LABEL: g:
-; X32: # %bb.0: # %entry
-; X32-NEXT: pushl %ebp
-; X32-NEXT: movl %esp, %ebp
-; X32-NEXT: pushl %ebx
-; X32-NEXT: pushl %edi
-; X32-NEXT: pushl %esi
-; X32-NEXT: andl $-16, %esp
-; X32-NEXT: subl $288, %esp # imm = 0x120
-; X32-NEXT: movzwl 8(%ebp), %eax
-; X32-NEXT: movw %ax, {{[0-9]+}}(%esp)
-; X32-NEXT: movzwl 12(%ebp), %eax
-; X32-NEXT: movw %ax, {{[0-9]+}}(%esp)
-; X32-NEXT: movzwl 16(%ebp), %eax
-; X32-NEXT: movw %ax, {{[0-9]+}}(%esp)
-; X32-NEXT: movzwl 20(%ebp), %eax
-; X32-NEXT: movw %ax, {{[0-9]+}}(%esp)
-; X32-NEXT: movzwl 24(%ebp), %eax
-; X32-NEXT: movw %ax, {{[0-9]+}}(%esp)
-; X32-NEXT: movzwl 28(%ebp), %eax
-; X32-NEXT: movw %ax, {{[0-9]+}}(%esp)
-; X32-NEXT: leal {{[0-9]+}}(%esp), %ebx
-; X32-NEXT: movl $32, %ecx
-; X32-NEXT: movl %esp, %edi
-; X32-NEXT: movl %ebx, %esi
-; X32-NEXT: rep;movsl (%esi), %es:(%edi)
-; X32-NEXT: movzwl {{[0-9]+}}(%esp), %eax
-; X32-NEXT: movw %ax, {{[0-9]+}}(%esp)
-; X32-NEXT: calll f
-; X32-NEXT: movl $32, %ecx
-; X32-NEXT: movl %esp, %edi
-; X32-NEXT: movl %ebx, %esi
-; X32-NEXT: rep;movsl (%esi), %es:(%edi)
-; X32-NEXT: movzwl {{[0-9]+}}(%esp), %eax
-; X32-NEXT: movw %ax, {{[0-9]+}}(%esp)
-; X32-NEXT: calll f
-; X32-NEXT: leal -12(%ebp), %esp
-; X32-NEXT: popl %esi
-; X32-NEXT: popl %edi
-; X32-NEXT: popl %ebx
-; X32-NEXT: popl %ebp
-; X32-NEXT: retl
+; X86-LABEL: g:
+; X86: # %bb.0: # %entry
+; X86-NEXT: pushl %ebp
+; X86-NEXT: movl %esp, %ebp
+; X86-NEXT: pushl %ebx
+; X86-NEXT: pushl %edi
+; X86-NEXT: pushl %esi
+; X86-NEXT: andl $-16, %esp
+; X86-NEXT: subl $288, %esp # imm = 0x120
+; X86-NEXT: movzwl 8(%ebp), %eax
+; X86-NEXT: movw %ax, {{[0-9]+}}(%esp)
+; X86-NEXT: movzwl 12(%ebp), %eax
+; X86-NEXT: movw %ax, {{[0-9]+}}(%esp)
+; X86-NEXT: movzwl 16(%ebp), %eax
+; X86-NEXT: movw %ax, {{[0-9]+}}(%esp)
+; X86-NEXT: movzwl 20(%ebp), %eax
+; X86-NEXT: movw %ax, {{[0-9]+}}(%esp)
+; X86-NEXT: movzwl 24(%ebp), %eax
+; X86-NEXT: movw %ax, {{[0-9]+}}(%esp)
+; X86-NEXT: movzwl 28(%ebp), %eax
+; X86-NEXT: movw %ax, {{[0-9]+}}(%esp)
+; X86-NEXT: leal {{[0-9]+}}(%esp), %ebx
+; X86-NEXT: movl $32, %ecx
+; X86-NEXT: movl %esp, %edi
+; X86-NEXT: movl %ebx, %esi
+; X86-NEXT: rep;movsl (%esi), %es:(%edi)
+; X86-NEXT: movzwl {{[0-9]+}}(%esp), %eax
+; X86-NEXT: movw %ax, {{[0-9]+}}(%esp)
+; X86-NEXT: calll f
+; X86-NEXT: movl $32, %ecx
+; X86-NEXT: movl %esp, %edi
+; X86-NEXT: movl %ebx, %esi
+; X86-NEXT: rep;movsl (%esi), %es:(%edi)
+; X86-NEXT: movzwl {{[0-9]+}}(%esp), %eax
+; X86-NEXT: movw %ax, {{[0-9]+}}(%esp)
+; X86-NEXT: calll f
+; X86-NEXT: leal -12(%ebp), %esp
+; X86-NEXT: popl %esi
+; X86-NEXT: popl %edi
+; X86-NEXT: popl %ebx
+; X86-NEXT: popl %ebp
+; X86-NEXT: retl
i16 signext %a4, i16 signext %a5, i16 signext %a6) nounwind {
entry:
%a = alloca %struct.s, align 16
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc < %s -mtriple=x86_64-linux -mattr=-avx | FileCheck %s -check-prefix=X64
; Win64 has not supported byval yet.
-; RUN: llc < %s -mtriple=i686-- -mattr=-avx | FileCheck %s -check-prefix=X32
+; RUN: llc < %s -mtriple=i686-- -mattr=-avx | FileCheck %s -check-prefix=X86
%struct.s = type { i8, i8, i8, i8, i8, i8, i8, i8,
i8, i8, i8, i8, i8, i8, i8, i8,
; X64-NEXT: popq %rbx
; X64-NEXT: retq
;
-; X32-LABEL: g:
-; X32: # %bb.0: # %entry
-; X32-NEXT: pushl %ebp
-; X32-NEXT: movl %esp, %ebp
-; X32-NEXT: pushl %ebx
-; X32-NEXT: pushl %edi
-; X32-NEXT: pushl %esi
-; X32-NEXT: andl $-8, %esp
-; X32-NEXT: subl $272, %esp # imm = 0x110
-; X32-NEXT: movb 28(%ebp), %al
-; X32-NEXT: movb 24(%ebp), %cl
-; X32-NEXT: movb 20(%ebp), %dl
-; X32-NEXT: movb 16(%ebp), %ah
-; X32-NEXT: movb 12(%ebp), %ch
-; X32-NEXT: movb 8(%ebp), %dh
-; X32-NEXT: movb %dh, {{[0-9]+}}(%esp)
-; X32-NEXT: movb %ch, {{[0-9]+}}(%esp)
-; X32-NEXT: movb %ah, {{[0-9]+}}(%esp)
-; X32-NEXT: movb %dl, {{[0-9]+}}(%esp)
-; X32-NEXT: movb %cl, {{[0-9]+}}(%esp)
-; X32-NEXT: movb %al, {{[0-9]+}}(%esp)
-; X32-NEXT: leal {{[0-9]+}}(%esp), %ebx
-; X32-NEXT: movl $32, %ecx
-; X32-NEXT: movl %esp, %edi
-; X32-NEXT: movl %ebx, %esi
-; X32-NEXT: rep;movsl (%esi), %es:(%edi)
-; X32-NEXT: movb {{[0-9]+}}(%esp), %al
-; X32-NEXT: movb %al, {{[0-9]+}}(%esp)
-; X32-NEXT: calll f
-; X32-NEXT: movl $32, %ecx
-; X32-NEXT: movl %esp, %edi
-; X32-NEXT: movl %ebx, %esi
-; X32-NEXT: rep;movsl (%esi), %es:(%edi)
-; X32-NEXT: movb {{[0-9]+}}(%esp), %al
-; X32-NEXT: movb %al, {{[0-9]+}}(%esp)
-; X32-NEXT: calll f
-; X32-NEXT: leal -12(%ebp), %esp
-; X32-NEXT: popl %esi
-; X32-NEXT: popl %edi
-; X32-NEXT: popl %ebx
-; X32-NEXT: popl %ebp
-; X32-NEXT: retl
+; X86-LABEL: g:
+; X86: # %bb.0: # %entry
+; X86-NEXT: pushl %ebp
+; X86-NEXT: movl %esp, %ebp
+; X86-NEXT: pushl %ebx
+; X86-NEXT: pushl %edi
+; X86-NEXT: pushl %esi
+; X86-NEXT: andl $-8, %esp
+; X86-NEXT: subl $272, %esp # imm = 0x110
+; X86-NEXT: movb 28(%ebp), %al
+; X86-NEXT: movb 24(%ebp), %cl
+; X86-NEXT: movb 20(%ebp), %dl
+; X86-NEXT: movb 16(%ebp), %ah
+; X86-NEXT: movb 12(%ebp), %ch
+; X86-NEXT: movb 8(%ebp), %dh
+; X86-NEXT: movb %dh, {{[0-9]+}}(%esp)
+; X86-NEXT: movb %ch, {{[0-9]+}}(%esp)
+; X86-NEXT: movb %ah, {{[0-9]+}}(%esp)
+; X86-NEXT: movb %dl, {{[0-9]+}}(%esp)
+; X86-NEXT: movb %cl, {{[0-9]+}}(%esp)
+; X86-NEXT: movb %al, {{[0-9]+}}(%esp)
+; X86-NEXT: leal {{[0-9]+}}(%esp), %ebx
+; X86-NEXT: movl $32, %ecx
+; X86-NEXT: movl %esp, %edi
+; X86-NEXT: movl %ebx, %esi
+; X86-NEXT: rep;movsl (%esi), %es:(%edi)
+; X86-NEXT: movb {{[0-9]+}}(%esp), %al
+; X86-NEXT: movb %al, {{[0-9]+}}(%esp)
+; X86-NEXT: calll f
+; X86-NEXT: movl $32, %ecx
+; X86-NEXT: movl %esp, %edi
+; X86-NEXT: movl %ebx, %esi
+; X86-NEXT: rep;movsl (%esi), %es:(%edi)
+; X86-NEXT: movb {{[0-9]+}}(%esp), %al
+; X86-NEXT: movb %al, {{[0-9]+}}(%esp)
+; X86-NEXT: calll f
+; X86-NEXT: leal -12(%ebp), %esp
+; X86-NEXT: popl %esi
+; X86-NEXT: popl %edi
+; X86-NEXT: popl %ebx
+; X86-NEXT: popl %ebp
+; X86-NEXT: retl
entry:
%a = alloca %struct.s
%tmp = getelementptr %struct.s, %struct.s* %a, i32 0, i32 0