[llvm] e4af212 - [X86] divrem.ll - replace X32 check prefixes with X86
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 31 04:09:07 PST 2024
Author: Simon Pilgrim
Date: 2024-01-31T12:01:01Z
New Revision: e4af212f967027430b4b313d2cca51888601547b
URL: https://github.com/llvm/llvm-project/commit/e4af212f967027430b4b313d2cca51888601547b
DIFF: https://github.com/llvm/llvm-project/commit/e4af212f967027430b4b313d2cca51888601547b.diff
LOG: [X86] divrem.ll - replace X32 check prefixes with X86
We try to only use X32 for gnux32 triple tests.
Added:
Modified:
llvm/test/CodeGen/X86/divrem.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/X86/divrem.ll b/llvm/test/CodeGen/X86/divrem.ll
index f0403e4362993..ba777b4954611 100644
--- a/llvm/test/CodeGen/X86/divrem.ll
+++ b/llvm/test/CodeGen/X86/divrem.ll
@@ -1,41 +1,41 @@
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
-; RUN: llc < %s -mtriple=i686-unknown | FileCheck %s --check-prefix=X32
+; RUN: llc < %s -mtriple=i686-unknown | FileCheck %s --check-prefix=X86
; RUN: llc < %s -mtriple=x86_64-unknown | FileCheck %s --check-prefix=X64
define void @si64(i64 %x, i64 %y, ptr %p, ptr %q) nounwind {
-; X32-LABEL: si64:
-; X32: # %bb.0:
-; X32-NEXT: pushl %ebp
-; X32-NEXT: pushl %ebx
-; X32-NEXT: pushl %edi
-; X32-NEXT: pushl %esi
-; X32-NEXT: movl {{[0-9]+}}(%esp), %ebx
-; X32-NEXT: movl {{[0-9]+}}(%esp), %ebp
-; X32-NEXT: pushl %ebp
-; X32-NEXT: pushl %ebx
-; X32-NEXT: pushl {{[0-9]+}}(%esp)
-; X32-NEXT: pushl {{[0-9]+}}(%esp)
-; X32-NEXT: calll __divdi3
-; X32-NEXT: addl $16, %esp
-; X32-NEXT: movl %eax, %esi
-; X32-NEXT: movl %edx, %edi
-; X32-NEXT: pushl %ebp
-; X32-NEXT: pushl %ebx
-; X32-NEXT: pushl {{[0-9]+}}(%esp)
-; X32-NEXT: pushl {{[0-9]+}}(%esp)
-; X32-NEXT: calll __moddi3
-; X32-NEXT: addl $16, %esp
-; X32-NEXT: movl {{[0-9]+}}(%esp), %ecx
-; X32-NEXT: movl %edi, 4(%ecx)
-; X32-NEXT: movl %esi, (%ecx)
-; X32-NEXT: movl {{[0-9]+}}(%esp), %ecx
-; X32-NEXT: movl %edx, 4(%ecx)
-; X32-NEXT: movl %eax, (%ecx)
-; X32-NEXT: popl %esi
-; X32-NEXT: popl %edi
-; X32-NEXT: popl %ebx
-; X32-NEXT: popl %ebp
-; X32-NEXT: retl
+; X86-LABEL: si64:
+; X86: # %bb.0:
+; X86-NEXT: pushl %ebp
+; X86-NEXT: pushl %ebx
+; X86-NEXT: pushl %edi
+; X86-NEXT: pushl %esi
+; X86-NEXT: movl {{[0-9]+}}(%esp), %ebx
+; X86-NEXT: movl {{[0-9]+}}(%esp), %ebp
+; X86-NEXT: pushl %ebp
+; X86-NEXT: pushl %ebx
+; X86-NEXT: pushl {{[0-9]+}}(%esp)
+; X86-NEXT: pushl {{[0-9]+}}(%esp)
+; X86-NEXT: calll __divdi3
+; X86-NEXT: addl $16, %esp
+; X86-NEXT: movl %eax, %esi
+; X86-NEXT: movl %edx, %edi
+; X86-NEXT: pushl %ebp
+; X86-NEXT: pushl %ebx
+; X86-NEXT: pushl {{[0-9]+}}(%esp)
+; X86-NEXT: pushl {{[0-9]+}}(%esp)
+; X86-NEXT: calll __moddi3
+; X86-NEXT: addl $16, %esp
+; X86-NEXT: movl {{[0-9]+}}(%esp), %ecx
+; X86-NEXT: movl %edi, 4(%ecx)
+; X86-NEXT: movl %esi, (%ecx)
+; X86-NEXT: movl {{[0-9]+}}(%esp), %ecx
+; X86-NEXT: movl %edx, 4(%ecx)
+; X86-NEXT: movl %eax, (%ecx)
+; X86-NEXT: popl %esi
+; X86-NEXT: popl %edi
+; X86-NEXT: popl %ebx
+; X86-NEXT: popl %ebp
+; X86-NEXT: retl
;
; X64-LABEL: si64:
; X64: # %bb.0:
@@ -54,18 +54,18 @@ define void @si64(i64 %x, i64 %y, ptr %p, ptr %q) nounwind {
}
define void @si32(i32 %x, i32 %y, ptr %p, ptr %q) nounwind {
-; X32-LABEL: si32:
-; X32: # %bb.0:
-; X32-NEXT: pushl %esi
-; X32-NEXT: movl {{[0-9]+}}(%esp), %eax
-; X32-NEXT: cltd
-; X32-NEXT: idivl {{[0-9]+}}(%esp)
-; X32-NEXT: movl {{[0-9]+}}(%esp), %ecx
-; X32-NEXT: movl {{[0-9]+}}(%esp), %esi
-; X32-NEXT: movl %eax, (%esi)
-; X32-NEXT: movl %edx, (%ecx)
-; X32-NEXT: popl %esi
-; X32-NEXT: retl
+; X86-LABEL: si32:
+; X86: # %bb.0:
+; X86-NEXT: pushl %esi
+; X86-NEXT: movl {{[0-9]+}}(%esp), %eax
+; X86-NEXT: cltd
+; X86-NEXT: idivl {{[0-9]+}}(%esp)
+; X86-NEXT: movl {{[0-9]+}}(%esp), %ecx
+; X86-NEXT: movl {{[0-9]+}}(%esp), %esi
+; X86-NEXT: movl %eax, (%esi)
+; X86-NEXT: movl %edx, (%ecx)
+; X86-NEXT: popl %esi
+; X86-NEXT: retl
;
; X64-LABEL: si32:
; X64: # %bb.0:
@@ -84,18 +84,18 @@ define void @si32(i32 %x, i32 %y, ptr %p, ptr %q) nounwind {
}
define void @si16(i16 %x, i16 %y, ptr %p, ptr %q) nounwind {
-; X32-LABEL: si16:
-; X32: # %bb.0:
-; X32-NEXT: pushl %esi
-; X32-NEXT: movzwl {{[0-9]+}}(%esp), %eax
-; X32-NEXT: cwtd
-; X32-NEXT: idivw {{[0-9]+}}(%esp)
-; X32-NEXT: movl {{[0-9]+}}(%esp), %ecx
-; X32-NEXT: movl {{[0-9]+}}(%esp), %esi
-; X32-NEXT: movw %ax, (%esi)
-; X32-NEXT: movw %dx, (%ecx)
-; X32-NEXT: popl %esi
-; X32-NEXT: retl
+; X86-LABEL: si16:
+; X86: # %bb.0:
+; X86-NEXT: pushl %esi
+; X86-NEXT: movzwl {{[0-9]+}}(%esp), %eax
+; X86-NEXT: cwtd
+; X86-NEXT: idivw {{[0-9]+}}(%esp)
+; X86-NEXT: movl {{[0-9]+}}(%esp), %ecx
+; X86-NEXT: movl {{[0-9]+}}(%esp), %esi
+; X86-NEXT: movw %ax, (%esi)
+; X86-NEXT: movw %dx, (%ecx)
+; X86-NEXT: popl %esi
+; X86-NEXT: retl
;
; X64-LABEL: si16:
; X64: # %bb.0:
@@ -115,18 +115,18 @@ define void @si16(i16 %x, i16 %y, ptr %p, ptr %q) nounwind {
}
define void @si8(i8 %x, i8 %y, ptr %p, ptr %q) nounwind {
-; X32-LABEL: si8:
-; X32: # %bb.0:
-; X32-NEXT: pushl %ebx
-; X32-NEXT: movsbl {{[0-9]+}}(%esp), %eax
-; X32-NEXT: idivb {{[0-9]+}}(%esp)
-; X32-NEXT: movl {{[0-9]+}}(%esp), %ecx
-; X32-NEXT: movl {{[0-9]+}}(%esp), %edx
-; X32-NEXT: movsbl %ah, %ebx
-; X32-NEXT: movb %al, (%edx)
-; X32-NEXT: movb %bl, (%ecx)
-; X32-NEXT: popl %ebx
-; X32-NEXT: retl
+; X86-LABEL: si8:
+; X86: # %bb.0:
+; X86-NEXT: pushl %ebx
+; X86-NEXT: movsbl {{[0-9]+}}(%esp), %eax
+; X86-NEXT: idivb {{[0-9]+}}(%esp)
+; X86-NEXT: movl {{[0-9]+}}(%esp), %ecx
+; X86-NEXT: movl {{[0-9]+}}(%esp), %edx
+; X86-NEXT: movsbl %ah, %ebx
+; X86-NEXT: movb %al, (%edx)
+; X86-NEXT: movb %bl, (%ecx)
+; X86-NEXT: popl %ebx
+; X86-NEXT: retl
;
; X64-LABEL: si8:
; X64: # %bb.0:
@@ -144,39 +144,39 @@ define void @si8(i8 %x, i8 %y, ptr %p, ptr %q) nounwind {
}
define void @ui64(i64 %x, i64 %y, ptr %p, ptr %q) nounwind {
-; X32-LABEL: ui64:
-; X32: # %bb.0:
-; X32-NEXT: pushl %ebp
-; X32-NEXT: pushl %ebx
-; X32-NEXT: pushl %edi
-; X32-NEXT: pushl %esi
-; X32-NEXT: movl {{[0-9]+}}(%esp), %ebx
-; X32-NEXT: movl {{[0-9]+}}(%esp), %ebp
-; X32-NEXT: pushl %ebp
-; X32-NEXT: pushl %ebx
-; X32-NEXT: pushl {{[0-9]+}}(%esp)
-; X32-NEXT: pushl {{[0-9]+}}(%esp)
-; X32-NEXT: calll __udivdi3
-; X32-NEXT: addl $16, %esp
-; X32-NEXT: movl %eax, %esi
-; X32-NEXT: movl %edx, %edi
-; X32-NEXT: pushl %ebp
-; X32-NEXT: pushl %ebx
-; X32-NEXT: pushl {{[0-9]+}}(%esp)
-; X32-NEXT: pushl {{[0-9]+}}(%esp)
-; X32-NEXT: calll __umoddi3
-; X32-NEXT: addl $16, %esp
-; X32-NEXT: movl {{[0-9]+}}(%esp), %ecx
-; X32-NEXT: movl %edi, 4(%ecx)
-; X32-NEXT: movl %esi, (%ecx)
-; X32-NEXT: movl {{[0-9]+}}(%esp), %ecx
-; X32-NEXT: movl %edx, 4(%ecx)
-; X32-NEXT: movl %eax, (%ecx)
-; X32-NEXT: popl %esi
-; X32-NEXT: popl %edi
-; X32-NEXT: popl %ebx
-; X32-NEXT: popl %ebp
-; X32-NEXT: retl
+; X86-LABEL: ui64:
+; X86: # %bb.0:
+; X86-NEXT: pushl %ebp
+; X86-NEXT: pushl %ebx
+; X86-NEXT: pushl %edi
+; X86-NEXT: pushl %esi
+; X86-NEXT: movl {{[0-9]+}}(%esp), %ebx
+; X86-NEXT: movl {{[0-9]+}}(%esp), %ebp
+; X86-NEXT: pushl %ebp
+; X86-NEXT: pushl %ebx
+; X86-NEXT: pushl {{[0-9]+}}(%esp)
+; X86-NEXT: pushl {{[0-9]+}}(%esp)
+; X86-NEXT: calll __udivdi3
+; X86-NEXT: addl $16, %esp
+; X86-NEXT: movl %eax, %esi
+; X86-NEXT: movl %edx, %edi
+; X86-NEXT: pushl %ebp
+; X86-NEXT: pushl %ebx
+; X86-NEXT: pushl {{[0-9]+}}(%esp)
+; X86-NEXT: pushl {{[0-9]+}}(%esp)
+; X86-NEXT: calll __umoddi3
+; X86-NEXT: addl $16, %esp
+; X86-NEXT: movl {{[0-9]+}}(%esp), %ecx
+; X86-NEXT: movl %edi, 4(%ecx)
+; X86-NEXT: movl %esi, (%ecx)
+; X86-NEXT: movl {{[0-9]+}}(%esp), %ecx
+; X86-NEXT: movl %edx, 4(%ecx)
+; X86-NEXT: movl %eax, (%ecx)
+; X86-NEXT: popl %esi
+; X86-NEXT: popl %edi
+; X86-NEXT: popl %ebx
+; X86-NEXT: popl %ebp
+; X86-NEXT: retl
;
; X64-LABEL: ui64:
; X64: # %bb.0:
@@ -195,18 +195,18 @@ define void @ui64(i64 %x, i64 %y, ptr %p, ptr %q) nounwind {
}
define void @ui32(i32 %x, i32 %y, ptr %p, ptr %q) nounwind {
-; X32-LABEL: ui32:
-; X32: # %bb.0:
-; X32-NEXT: pushl %esi
-; X32-NEXT: movl {{[0-9]+}}(%esp), %eax
-; X32-NEXT: xorl %edx, %edx
-; X32-NEXT: divl {{[0-9]+}}(%esp)
-; X32-NEXT: movl {{[0-9]+}}(%esp), %ecx
-; X32-NEXT: movl {{[0-9]+}}(%esp), %esi
-; X32-NEXT: movl %eax, (%esi)
-; X32-NEXT: movl %edx, (%ecx)
-; X32-NEXT: popl %esi
-; X32-NEXT: retl
+; X86-LABEL: ui32:
+; X86: # %bb.0:
+; X86-NEXT: pushl %esi
+; X86-NEXT: movl {{[0-9]+}}(%esp), %eax
+; X86-NEXT: xorl %edx, %edx
+; X86-NEXT: divl {{[0-9]+}}(%esp)
+; X86-NEXT: movl {{[0-9]+}}(%esp), %ecx
+; X86-NEXT: movl {{[0-9]+}}(%esp), %esi
+; X86-NEXT: movl %eax, (%esi)
+; X86-NEXT: movl %edx, (%ecx)
+; X86-NEXT: popl %esi
+; X86-NEXT: retl
;
; X64-LABEL: ui32:
; X64: # %bb.0:
@@ -225,18 +225,18 @@ define void @ui32(i32 %x, i32 %y, ptr %p, ptr %q) nounwind {
}
define void @ui16(i16 %x, i16 %y, ptr %p, ptr %q) nounwind {
-; X32-LABEL: ui16:
-; X32: # %bb.0:
-; X32-NEXT: pushl %esi
-; X32-NEXT: movzwl {{[0-9]+}}(%esp), %eax
-; X32-NEXT: xorl %edx, %edx
-; X32-NEXT: divw {{[0-9]+}}(%esp)
-; X32-NEXT: movl {{[0-9]+}}(%esp), %ecx
-; X32-NEXT: movl {{[0-9]+}}(%esp), %esi
-; X32-NEXT: movw %ax, (%esi)
-; X32-NEXT: movw %dx, (%ecx)
-; X32-NEXT: popl %esi
-; X32-NEXT: retl
+; X86-LABEL: ui16:
+; X86: # %bb.0:
+; X86-NEXT: pushl %esi
+; X86-NEXT: movzwl {{[0-9]+}}(%esp), %eax
+; X86-NEXT: xorl %edx, %edx
+; X86-NEXT: divw {{[0-9]+}}(%esp)
+; X86-NEXT: movl {{[0-9]+}}(%esp), %ecx
+; X86-NEXT: movl {{[0-9]+}}(%esp), %esi
+; X86-NEXT: movw %ax, (%esi)
+; X86-NEXT: movw %dx, (%ecx)
+; X86-NEXT: popl %esi
+; X86-NEXT: retl
;
; X64-LABEL: ui16:
; X64: # %bb.0:
@@ -256,18 +256,18 @@ define void @ui16(i16 %x, i16 %y, ptr %p, ptr %q) nounwind {
}
define void @ui8(i8 %x, i8 %y, ptr %p, ptr %q) nounwind {
-; X32-LABEL: ui8:
-; X32: # %bb.0:
-; X32-NEXT: pushl %ebx
-; X32-NEXT: movzbl {{[0-9]+}}(%esp), %eax
-; X32-NEXT: divb {{[0-9]+}}(%esp)
-; X32-NEXT: movl {{[0-9]+}}(%esp), %ecx
-; X32-NEXT: movl {{[0-9]+}}(%esp), %edx
-; X32-NEXT: movzbl %ah, %ebx
-; X32-NEXT: movb %al, (%edx)
-; X32-NEXT: movb %bl, (%ecx)
-; X32-NEXT: popl %ebx
-; X32-NEXT: retl
+; X86-LABEL: ui8:
+; X86: # %bb.0:
+; X86-NEXT: pushl %ebx
+; X86-NEXT: movzbl {{[0-9]+}}(%esp), %eax
+; X86-NEXT: divb {{[0-9]+}}(%esp)
+; X86-NEXT: movl {{[0-9]+}}(%esp), %ecx
+; X86-NEXT: movl {{[0-9]+}}(%esp), %edx
+; X86-NEXT: movzbl %ah, %ebx
+; X86-NEXT: movb %al, (%edx)
+; X86-NEXT: movb %bl, (%ecx)
+; X86-NEXT: popl %ebx
+; X86-NEXT: retl
;
; X64-LABEL: ui8:
; X64: # %bb.0:
More information about the llvm-commits
mailing list