[llvm] 623250b - [X86] Regenerate fold-tied-op.ll test checks
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 4 13:45:54 PDT 2022
Author: Simon Pilgrim
Date: 2022-07-04T21:43:46+01:00
New Revision: 623250b51139901c65118e50447afeb17cf15ffe
URL: https://github.com/llvm/llvm-project/commit/623250b51139901c65118e50447afeb17cf15ffe
DIFF: https://github.com/llvm/llvm-project/commit/623250b51139901c65118e50447afeb17cf15ffe.diff
LOG: [X86] Regenerate fold-tied-op.ll test checks
Added:
Modified:
llvm/test/CodeGen/X86/fold-tied-op.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/X86/fold-tied-op.ll b/llvm/test/CodeGen/X86/fold-tied-op.ll
index c49dbd3b06d0c..a8636a3496dc4 100644
--- a/llvm/test/CodeGen/X86/fold-tied-op.ll
+++ b/llvm/test/CodeGen/X86/fold-tied-op.ll
@@ -1,16 +1,7 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc -verify-machineinstrs -mtriple=i386--netbsd < %s | FileCheck %s
-; Regression test for http://reviews.llvm.org/D5701
-
-; ModuleID = 'xxhash.i'
-target datalayout = "e-m:e-p:32:32-f64:32:64-f80:32-n8:16:32-S128"
-target triple = "i386--netbsd"
-; CHECK-LABEL: fn1
-; CHECK: orl {{.*#+}} 4-byte Folded Reload
-; CHECK: addl {{.*#+}} 4-byte Folded Reload
-; CHECK: xorl {{.*#+}} 4-byte Folded Reload
-; CHECK: xorl {{.*#+}} 4-byte Folded Reload
-; CHECK: retl
+; Regression test for http://reviews.llvm.org/D5701
%struct.XXH_state64_t = type { i32, i32, i64, i64, i64 }
@@ -19,6 +10,112 @@ target triple = "i386--netbsd"
; Function Attrs: nounwind uwtable
define i64 @fn1() #0 {
+; CHECK-LABEL: fn1:
+; CHECK: # %bb.0: # %entry
+; CHECK-NEXT: pushl %ebp
+; CHECK-NEXT: .cfi_def_cfa_offset 8
+; CHECK-NEXT: .cfi_offset %ebp, -8
+; CHECK-NEXT: movl %esp, %ebp
+; CHECK-NEXT: .cfi_def_cfa_register %ebp
+; CHECK-NEXT: pushl %ebx
+; CHECK-NEXT: pushl %edi
+; CHECK-NEXT: pushl %esi
+; CHECK-NEXT: subl $12, %esp
+; CHECK-NEXT: .cfi_offset %esi, -20
+; CHECK-NEXT: .cfi_offset %edi, -16
+; CHECK-NEXT: .cfi_offset %ebx, -12
+; CHECK-NEXT: movl $-1028477379, %ebx # imm = 0xC2B2AE3D
+; CHECK-NEXT: movl $668265295, %ecx # imm = 0x27D4EB4F
+; CHECK-NEXT: movl a, %edi
+; CHECK-NEXT: cmpl $0, (%edi)
+; CHECK-NEXT: je .LBB0_2
+; CHECK-NEXT: # %bb.1: # %if.then
+; CHECK-NEXT: movl 8(%edi), %esi
+; CHECK-NEXT: movl 12(%edi), %eax
+; CHECK-NEXT: movl %eax, %edx
+; CHECK-NEXT: shldl $1, %esi, %edx
+; CHECK-NEXT: orl %eax, %edx
+; CHECK-NEXT: leal (%esi,%esi), %eax
+; CHECK-NEXT: orl %esi, %eax
+; CHECK-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
+; CHECK-NEXT: movl 16(%edi), %ebx
+; CHECK-NEXT: movl 20(%edi), %esi
+; CHECK-NEXT: movl %esi, %eax
+; CHECK-NEXT: shldl $2, %ebx, %eax
+; CHECK-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
+; CHECK-NEXT: movl %ebx, %eax
+; CHECK-NEXT: movl %esi, %ebx
+; CHECK-NEXT: shldl $31, %eax, %ebx
+; CHECK-NEXT: shll $2, %eax
+; CHECK-NEXT: orl %ebx, %eax
+; CHECK-NEXT: shrl %esi
+; CHECK-NEXT: orl {{[-0-9]+}}(%e{{[sb]}}p), %esi # 4-byte Folded Reload
+; CHECK-NEXT: addl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Folded Reload
+; CHECK-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
+; CHECK-NEXT: adcl %edx, %esi
+; CHECK-NEXT: movl %esi, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
+; CHECK-NEXT: movl 24(%edi), %eax
+; CHECK-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
+; CHECK-NEXT: movl $-1028477379, %ebx # imm = 0xC2B2AE3D
+; CHECK-NEXT: imull %eax, %ebx
+; CHECK-NEXT: mull %ecx
+; CHECK-NEXT: movl %eax, %esi
+; CHECK-NEXT: addl %ebx, %edx
+; CHECK-NEXT: movl 28(%edi), %edi
+; CHECK-NEXT: imull %edi, %ecx
+; CHECK-NEXT: addl %edx, %ecx
+; CHECK-NEXT: movl $1336530590, %edx # imm = 0x4FA9D69E
+; CHECK-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ebx # 4-byte Reload
+; CHECK-NEXT: movl %ebx, %eax
+; CHECK-NEXT: mull %edx
+; CHECK-NEXT: imull $-2056954758, %ebx, %ebx # imm = 0x85655C7A
+; CHECK-NEXT: addl %edx, %ebx
+; CHECK-NEXT: imull $1336530590, %edi, %edx # imm = 0x4FA9D69E
+; CHECK-NEXT: addl %ebx, %edx
+; CHECK-NEXT: shrdl $3, %ecx, %esi
+; CHECK-NEXT: sarl $3, %ecx
+; CHECK-NEXT: orl %edx, %ecx
+; CHECK-NEXT: orl %eax, %esi
+; CHECK-NEXT: movl $-66860409, %ebx # imm = 0xFC03CA87
+; CHECK-NEXT: movl %esi, %eax
+; CHECK-NEXT: mull %ebx
+; CHECK-NEXT: movl %eax, %edi
+; CHECK-NEXT: imull $326129324, %esi, %eax # imm = 0x137056AC
+; CHECK-NEXT: addl %edx, %eax
+; CHECK-NEXT: imull $-66860409, %ecx, %ecx # imm = 0xFC03CA87
+; CHECK-NEXT: addl %eax, %ecx
+; CHECK-NEXT: xorl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Folded Reload
+; CHECK-NEXT: xorl {{[-0-9]+}}(%e{{[sb]}}p), %edi # 4-byte Folded Reload
+; CHECK-NEXT: movl %edi, b
+; CHECK-NEXT: movl %edi, %eax
+; CHECK-NEXT: mull %ebx
+; CHECK-NEXT: imull $326129324, %edi, %esi # imm = 0x137056AC
+; CHECK-NEXT: addl %edx, %esi
+; CHECK-NEXT: movl %ecx, b+4
+; CHECK-NEXT: imull $-66860409, %ecx, %ecx # imm = 0xFC03CA87
+; CHECK-NEXT: jmp .LBB0_3
+; CHECK-NEXT: .LBB0_2: # %if.else
+; CHECK-NEXT: xorl b+4, %ebx
+; CHECK-NEXT: xorl b, %ecx
+; CHECK-NEXT: movl $1419758215, %edx # imm = 0x549FCA87
+; CHECK-NEXT: movl %ecx, %eax
+; CHECK-NEXT: mull %edx
+; CHECK-NEXT: imull $93298681, %ecx, %esi # imm = 0x58F9FF9
+; CHECK-NEXT: addl %edx, %esi
+; CHECK-NEXT: imull $1419758215, %ebx, %ecx # imm = 0x549FCA87
+; CHECK-NEXT: .LBB0_3: # %if.end
+; CHECK-NEXT: addl %esi, %ecx
+; CHECK-NEXT: addl $-1028477341, %eax # imm = 0xC2B2AE63
+; CHECK-NEXT: adcl $-2048144777, %ecx # imm = 0x85EBCA77
+; CHECK-NEXT: movl %eax, b
+; CHECK-NEXT: movl %ecx, b+4
+; CHECK-NEXT: addl $12, %esp
+; CHECK-NEXT: popl %esi
+; CHECK-NEXT: popl %edi
+; CHECK-NEXT: popl %ebx
+; CHECK-NEXT: popl %ebp
+; CHECK-NEXT: .cfi_def_cfa %esp, 4
+; CHECK-NEXT: retl
entry:
%0 = load i32, ptr @a, align 4, !tbaa !1
%1 = inttoptr i32 %0 to ptr
More information about the llvm-commits
mailing list