From 49e0de5f6fe6470523576fb01d38021ea2957260 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Tue, 17 Nov 2020 18:26:32 +0000 Subject: [PATCH] [X86] byval tests - replace X32 check prefix with X86. NFC. We typically use X32 for gnux32 triples --- llvm/test/CodeGen/X86/byval.ll | 10 ++--- llvm/test/CodeGen/X86/byval2.ll | 78 ++++++++++++++++++------------------- llvm/test/CodeGen/X86/byval3.ll | 78 ++++++++++++++++++------------------- llvm/test/CodeGen/X86/byval4.ll | 86 ++++++++++++++++++++--------------------- llvm/test/CodeGen/X86/byval5.ll | 86 ++++++++++++++++++++--------------------- 5 files changed, 169 insertions(+), 169 deletions(-) diff --git a/llvm/test/CodeGen/X86/byval.ll b/llvm/test/CodeGen/X86/byval.ll index 3583c1c..079cd61 100644 --- a/llvm/test/CodeGen/X86/byval.ll +++ b/llvm/test/CodeGen/X86/byval.ll @@ -1,15 +1,15 @@ ; 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 diff --git a/llvm/test/CodeGen/X86/byval2.ll b/llvm/test/CodeGen/X86/byval2.ll index b669d91..8e5b92b 100644 --- a/llvm/test/CodeGen/X86/byval2.ll +++ b/llvm/test/CodeGen/X86/byval2.ll @@ -1,7 +1,7 @@ ; 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, @@ -30,44 +30,44 @@ define void @g(i64 %a, i64 %b, i64 %c) nounwind { ; 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 diff --git a/llvm/test/CodeGen/X86/byval3.ll b/llvm/test/CodeGen/X86/byval3.ll index b41b13c..790c013 100644 --- a/llvm/test/CodeGen/X86/byval3.ll +++ b/llvm/test/CodeGen/X86/byval3.ll @@ -1,7 +1,7 @@ ; 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, @@ -39,44 +39,44 @@ define void @g(i32 %a1, i32 %a2, i32 %a3, i32 %a4, i32 %a5, i32 %a6) nounwind { ; 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 diff --git a/llvm/test/CodeGen/X86/byval4.ll b/llvm/test/CodeGen/X86/byval4.ll index d6b047f..8a8713e 100644 --- a/llvm/test/CodeGen/X86/byval4.ll +++ b/llvm/test/CodeGen/X86/byval4.ll @@ -1,7 +1,7 @@ ; 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, @@ -44,48 +44,48 @@ define void @g(i16 signext %a1, i16 signext %a2, i16 signext %a3, ; 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 diff --git a/llvm/test/CodeGen/X86/byval5.ll b/llvm/test/CodeGen/X86/byval5.ll index 5b57936..eda8fe5 100644 --- a/llvm/test/CodeGen/X86/byval5.ll +++ b/llvm/test/CodeGen/X86/byval5.ll @@ -1,7 +1,7 @@ ; 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, @@ -52,48 +52,48 @@ define void @g(i8 signext %a1, i8 signext %a2, i8 signext %a3, i8 signext %a ; 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 -- 2.7.4