[llvm] 6aa43fe - [X86] commute-3dnow.ll - use X86 check prefix instead of X32
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 22 07:11:03 PST 2023
Author: Simon Pilgrim
Date: 2023-01-22T14:57:06Z
New Revision: 6aa43fed4c17fe39ce17cc105aec9f838d1adbbd
URL: https://github.com/llvm/llvm-project/commit/6aa43fed4c17fe39ce17cc105aec9f838d1adbbd
DIFF: https://github.com/llvm/llvm-project/commit/6aa43fed4c17fe39ce17cc105aec9f838d1adbbd.diff
LOG: [X86] commute-3dnow.ll - use X86 check prefix instead of X32
We try to use X32 for tests on gnux32 triples
Added:
Modified:
llvm/test/CodeGen/X86/commute-3dnow.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/X86/commute-3dnow.ll b/llvm/test/CodeGen/X86/commute-3dnow.ll
index eaba252cee7b..dc3910920365 100644
--- a/llvm/test/CodeGen/X86/commute-3dnow.ll
+++ b/llvm/test/CodeGen/X86/commute-3dnow.ll
@@ -1,18 +1,18 @@
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
-; RUN: llc < %s -mtriple=i686-unknown-unknown -mattr=+mmx,+3dnow | FileCheck %s --check-prefix=X32
+; RUN: llc < %s -mtriple=i686-unknown-unknown -mattr=+mmx,+3dnow | FileCheck %s --check-prefix=X86
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+mmx,+3dnow | FileCheck %s --check-prefix=X64
define void @commute_m_pfadd(ptr%a0, ptr%a1, ptr%a2) nounwind {
-; X32-LABEL: commute_m_pfadd:
-; X32: # %bb.0:
-; X32-NEXT: movl {{[0-9]+}}(%esp), %eax
-; X32-NEXT: movl {{[0-9]+}}(%esp), %ecx
-; X32-NEXT: movl {{[0-9]+}}(%esp), %edx
-; X32-NEXT: movq (%edx), %mm0
-; X32-NEXT: pfadd (%eax), %mm0
-; X32-NEXT: pfadd (%ecx), %mm0
-; X32-NEXT: movq %mm0, (%ecx)
-; X32-NEXT: retl
+; X86-LABEL: commute_m_pfadd:
+; X86: # %bb.0:
+; X86-NEXT: movl {{[0-9]+}}(%esp), %eax
+; X86-NEXT: movl {{[0-9]+}}(%esp), %ecx
+; X86-NEXT: movl {{[0-9]+}}(%esp), %edx
+; X86-NEXT: movq (%edx), %mm0
+; X86-NEXT: pfadd (%eax), %mm0
+; X86-NEXT: pfadd (%ecx), %mm0
+; X86-NEXT: movq %mm0, (%ecx)
+; X86-NEXT: retl
;
; X64-LABEL: commute_m_pfadd:
; X64: # %bb.0:
@@ -32,16 +32,16 @@ define void @commute_m_pfadd(ptr%a0, ptr%a1, ptr%a2) nounwind {
declare x86_mmx @llvm.x86.3dnow.pfadd(x86_mmx, x86_mmx)
define void @commute_m_pfsub(ptr%a0, ptr%a1, ptr%a2) nounwind {
-; X32-LABEL: commute_m_pfsub:
-; X32: # %bb.0:
-; X32-NEXT: movl {{[0-9]+}}(%esp), %eax
-; X32-NEXT: movl {{[0-9]+}}(%esp), %ecx
-; X32-NEXT: movl {{[0-9]+}}(%esp), %edx
-; X32-NEXT: movq (%edx), %mm0
-; X32-NEXT: pfsub (%eax), %mm0
-; X32-NEXT: pfsubr (%ecx), %mm0
-; X32-NEXT: movq %mm0, (%ecx)
-; X32-NEXT: retl
+; X86-LABEL: commute_m_pfsub:
+; X86: # %bb.0:
+; X86-NEXT: movl {{[0-9]+}}(%esp), %eax
+; X86-NEXT: movl {{[0-9]+}}(%esp), %ecx
+; X86-NEXT: movl {{[0-9]+}}(%esp), %edx
+; X86-NEXT: movq (%edx), %mm0
+; X86-NEXT: pfsub (%eax), %mm0
+; X86-NEXT: pfsubr (%ecx), %mm0
+; X86-NEXT: movq %mm0, (%ecx)
+; X86-NEXT: retl
;
; X64-LABEL: commute_m_pfsub:
; X64: # %bb.0:
@@ -61,16 +61,16 @@ define void @commute_m_pfsub(ptr%a0, ptr%a1, ptr%a2) nounwind {
declare x86_mmx @llvm.x86.3dnow.pfsub(x86_mmx, x86_mmx)
define void @commute_m_pfsubr(ptr%a0, ptr%a1, ptr%a2) nounwind {
-; X32-LABEL: commute_m_pfsubr:
-; X32: # %bb.0:
-; X32-NEXT: movl {{[0-9]+}}(%esp), %eax
-; X32-NEXT: movl {{[0-9]+}}(%esp), %ecx
-; X32-NEXT: movl {{[0-9]+}}(%esp), %edx
-; X32-NEXT: movq (%edx), %mm0
-; X32-NEXT: pfsubr (%eax), %mm0
-; X32-NEXT: pfsub (%ecx), %mm0
-; X32-NEXT: movq %mm0, (%ecx)
-; X32-NEXT: retl
+; X86-LABEL: commute_m_pfsubr:
+; X86: # %bb.0:
+; X86-NEXT: movl {{[0-9]+}}(%esp), %eax
+; X86-NEXT: movl {{[0-9]+}}(%esp), %ecx
+; X86-NEXT: movl {{[0-9]+}}(%esp), %edx
+; X86-NEXT: movq (%edx), %mm0
+; X86-NEXT: pfsubr (%eax), %mm0
+; X86-NEXT: pfsub (%ecx), %mm0
+; X86-NEXT: movq %mm0, (%ecx)
+; X86-NEXT: retl
;
; X64-LABEL: commute_m_pfsubr:
; X64: # %bb.0:
@@ -90,16 +90,16 @@ define void @commute_m_pfsubr(ptr%a0, ptr%a1, ptr%a2) nounwind {
declare x86_mmx @llvm.x86.3dnow.pfsubr(x86_mmx, x86_mmx)
define void @commute_m_pfmul(ptr%a0, ptr%a1, ptr%a2) nounwind {
-; X32-LABEL: commute_m_pfmul:
-; X32: # %bb.0:
-; X32-NEXT: movl {{[0-9]+}}(%esp), %eax
-; X32-NEXT: movl {{[0-9]+}}(%esp), %ecx
-; X32-NEXT: movl {{[0-9]+}}(%esp), %edx
-; X32-NEXT: movq (%edx), %mm0
-; X32-NEXT: pfmul (%eax), %mm0
-; X32-NEXT: pfmul (%ecx), %mm0
-; X32-NEXT: movq %mm0, (%ecx)
-; X32-NEXT: retl
+; X86-LABEL: commute_m_pfmul:
+; X86: # %bb.0:
+; X86-NEXT: movl {{[0-9]+}}(%esp), %eax
+; X86-NEXT: movl {{[0-9]+}}(%esp), %ecx
+; X86-NEXT: movl {{[0-9]+}}(%esp), %edx
+; X86-NEXT: movq (%edx), %mm0
+; X86-NEXT: pfmul (%eax), %mm0
+; X86-NEXT: pfmul (%ecx), %mm0
+; X86-NEXT: movq %mm0, (%ecx)
+; X86-NEXT: retl
;
; X64-LABEL: commute_m_pfmul:
; X64: # %bb.0:
@@ -120,17 +120,17 @@ declare x86_mmx @llvm.x86.3dnow.pfmul(x86_mmx, x86_mmx)
; PFMAX can't commute without fast-math.
define void @commute_m_pfmax(ptr%a0, ptr%a1, ptr%a2) nounwind {
-; X32-LABEL: commute_m_pfmax:
-; X32: # %bb.0:
-; X32-NEXT: movl {{[0-9]+}}(%esp), %eax
-; X32-NEXT: movl {{[0-9]+}}(%esp), %ecx
-; X32-NEXT: movl {{[0-9]+}}(%esp), %edx
-; X32-NEXT: movq (%edx), %mm0
-; X32-NEXT: movq (%ecx), %mm1
-; X32-NEXT: pfmax (%eax), %mm0
-; X32-NEXT: pfmax %mm0, %mm1
-; X32-NEXT: movq %mm1, (%ecx)
-; X32-NEXT: retl
+; X86-LABEL: commute_m_pfmax:
+; X86: # %bb.0:
+; X86-NEXT: movl {{[0-9]+}}(%esp), %eax
+; X86-NEXT: movl {{[0-9]+}}(%esp), %ecx
+; X86-NEXT: movl {{[0-9]+}}(%esp), %edx
+; X86-NEXT: movq (%edx), %mm0
+; X86-NEXT: movq (%ecx), %mm1
+; X86-NEXT: pfmax (%eax), %mm0
+; X86-NEXT: pfmax %mm0, %mm1
+; X86-NEXT: movq %mm1, (%ecx)
+; X86-NEXT: retl
;
; X64-LABEL: commute_m_pfmax:
; X64: # %bb.0:
@@ -152,17 +152,17 @@ declare x86_mmx @llvm.x86.3dnow.pfmax(x86_mmx, x86_mmx)
; PFMIN can't commute without fast-math.
define void @commute_m_pfmin(ptr%a0, ptr%a1, ptr%a2) nounwind {
-; X32-LABEL: commute_m_pfmin:
-; X32: # %bb.0:
-; X32-NEXT: movl {{[0-9]+}}(%esp), %eax
-; X32-NEXT: movl {{[0-9]+}}(%esp), %ecx
-; X32-NEXT: movl {{[0-9]+}}(%esp), %edx
-; X32-NEXT: movq (%edx), %mm0
-; X32-NEXT: movq (%ecx), %mm1
-; X32-NEXT: pfmin (%eax), %mm0
-; X32-NEXT: pfmin %mm0, %mm1
-; X32-NEXT: movq %mm1, (%ecx)
-; X32-NEXT: retl
+; X86-LABEL: commute_m_pfmin:
+; X86: # %bb.0:
+; X86-NEXT: movl {{[0-9]+}}(%esp), %eax
+; X86-NEXT: movl {{[0-9]+}}(%esp), %ecx
+; X86-NEXT: movl {{[0-9]+}}(%esp), %edx
+; X86-NEXT: movq (%edx), %mm0
+; X86-NEXT: movq (%ecx), %mm1
+; X86-NEXT: pfmin (%eax), %mm0
+; X86-NEXT: pfmin %mm0, %mm1
+; X86-NEXT: movq %mm1, (%ecx)
+; X86-NEXT: retl
;
; X64-LABEL: commute_m_pfmin:
; X64: # %bb.0:
@@ -183,16 +183,16 @@ define void @commute_m_pfmin(ptr%a0, ptr%a1, ptr%a2) nounwind {
declare x86_mmx @llvm.x86.3dnow.pfmin(x86_mmx, x86_mmx)
define void @commute_m_pfcmpeq(ptr%a0, ptr%a1, ptr%a2) nounwind {
-; X32-LABEL: commute_m_pfcmpeq:
-; X32: # %bb.0:
-; X32-NEXT: movl {{[0-9]+}}(%esp), %eax
-; X32-NEXT: movl {{[0-9]+}}(%esp), %ecx
-; X32-NEXT: movl {{[0-9]+}}(%esp), %edx
-; X32-NEXT: movq (%edx), %mm0
-; X32-NEXT: pfcmpeq (%eax), %mm0
-; X32-NEXT: pfcmpeq (%ecx), %mm0
-; X32-NEXT: movq %mm0, (%ecx)
-; X32-NEXT: retl
+; X86-LABEL: commute_m_pfcmpeq:
+; X86: # %bb.0:
+; X86-NEXT: movl {{[0-9]+}}(%esp), %eax
+; X86-NEXT: movl {{[0-9]+}}(%esp), %ecx
+; X86-NEXT: movl {{[0-9]+}}(%esp), %edx
+; X86-NEXT: movq (%edx), %mm0
+; X86-NEXT: pfcmpeq (%eax), %mm0
+; X86-NEXT: pfcmpeq (%ecx), %mm0
+; X86-NEXT: movq %mm0, (%ecx)
+; X86-NEXT: retl
;
; X64-LABEL: commute_m_pfcmpeq:
; X64: # %bb.0:
@@ -212,16 +212,16 @@ define void @commute_m_pfcmpeq(ptr%a0, ptr%a1, ptr%a2) nounwind {
declare x86_mmx @llvm.x86.3dnow.pfcmpeq(x86_mmx, x86_mmx)
define void @commute_m_pavgusb(ptr%a0, ptr%a1, ptr%a2) nounwind {
-; X32-LABEL: commute_m_pavgusb:
-; X32: # %bb.0:
-; X32-NEXT: movl {{[0-9]+}}(%esp), %eax
-; X32-NEXT: movl {{[0-9]+}}(%esp), %ecx
-; X32-NEXT: movl {{[0-9]+}}(%esp), %edx
-; X32-NEXT: movq (%edx), %mm0
-; X32-NEXT: pavgusb (%eax), %mm0
-; X32-NEXT: pavgusb (%ecx), %mm0
-; X32-NEXT: movq %mm0, (%ecx)
-; X32-NEXT: retl
+; X86-LABEL: commute_m_pavgusb:
+; X86: # %bb.0:
+; X86-NEXT: movl {{[0-9]+}}(%esp), %eax
+; X86-NEXT: movl {{[0-9]+}}(%esp), %ecx
+; X86-NEXT: movl {{[0-9]+}}(%esp), %edx
+; X86-NEXT: movq (%edx), %mm0
+; X86-NEXT: pavgusb (%eax), %mm0
+; X86-NEXT: pavgusb (%ecx), %mm0
+; X86-NEXT: movq %mm0, (%ecx)
+; X86-NEXT: retl
;
; X64-LABEL: commute_m_pavgusb:
; X64: # %bb.0:
@@ -241,16 +241,16 @@ define void @commute_m_pavgusb(ptr%a0, ptr%a1, ptr%a2) nounwind {
declare x86_mmx @llvm.x86.3dnow.pavgusb(x86_mmx, x86_mmx)
define void @commute_m_pmulhrw(ptr%a0, ptr%a1, ptr%a2) nounwind {
-; X32-LABEL: commute_m_pmulhrw:
-; X32: # %bb.0:
-; X32-NEXT: movl {{[0-9]+}}(%esp), %eax
-; X32-NEXT: movl {{[0-9]+}}(%esp), %ecx
-; X32-NEXT: movl {{[0-9]+}}(%esp), %edx
-; X32-NEXT: movq (%edx), %mm0
-; X32-NEXT: pmulhrw (%eax), %mm0
-; X32-NEXT: pmulhrw (%ecx), %mm0
-; X32-NEXT: movq %mm0, (%ecx)
-; X32-NEXT: retl
+; X86-LABEL: commute_m_pmulhrw:
+; X86: # %bb.0:
+; X86-NEXT: movl {{[0-9]+}}(%esp), %eax
+; X86-NEXT: movl {{[0-9]+}}(%esp), %ecx
+; X86-NEXT: movl {{[0-9]+}}(%esp), %edx
+; X86-NEXT: movq (%edx), %mm0
+; X86-NEXT: pmulhrw (%eax), %mm0
+; X86-NEXT: pmulhrw (%ecx), %mm0
+; X86-NEXT: movq %mm0, (%ecx)
+; X86-NEXT: retl
;
; X64-LABEL: commute_m_pmulhrw:
; X64: # %bb.0:
More information about the llvm-commits
mailing list