[llvm] r367424 - [X86] Regenerate alias-static-alloca test checks to make D65354 diff easier

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 31 05:27:47 PDT 2019


Author: rksimon
Date: Wed Jul 31 05:27:47 2019
New Revision: 367424

URL: http://llvm.org/viewvc/llvm-project?rev=367424&view=rev
Log:
[X86] Regenerate alias-static-alloca test checks to make D65354 diff easier

I've manually added the stack offsets back as these are worth keeping - we really need a way for update_llc_test_checks.py not to mask out useful address math

Modified:
    llvm/trunk/test/CodeGen/X86/alias-static-alloca.ll

Modified: llvm/trunk/test/CodeGen/X86/alias-static-alloca.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/alias-static-alloca.ll?rev=367424&r1=367423&r2=367424&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/alias-static-alloca.ll (original)
+++ llvm/trunk/test/CodeGen/X86/alias-static-alloca.ll Wed Jul 31 05:27:47 2019
@@ -1,22 +1,22 @@
-; RUN: llc -o - -mtriple=x86_64-linux-gnu %s | FileCheck %s
-
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
-target triple = "x86_64-unknown-linux-gnu"
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc < %s -mtriple=x86_64-linux-gnu | FileCheck %s
 
 ; We should be able to bypass the load values to their corresponding
 ; stores here.
 
-; CHECK-LABEL: foo
-; CHECK-DAG: movl	%esi, -8(%rsp)
-; CHECK-DAG: movl	%ecx, -16(%rsp)
-; CHECK-DAG: movl	%edi, -4(%rsp)
-; CHECK-DAG: movl	%edx, -12(%rsp)
-; CHECK: leal
-; CHECK: addl
-; CHECK: addl
-; CHECK: retq
-
 define i32 @foo(i32 %a, i32 %b, i32 %c, i32 %d) {
+; CHECK-LABEL: foo:
+; CHECK:       # %bb.0: # %entry
+; CHECK-NEXT:    # kill: def $esi killed $esi def $rsi
+; CHECK-NEXT:    # kill: def $edi killed $edi def $rdi
+; CHECK-NEXT:    movl %esi, -8(%rsp)
+; CHECK-NEXT:    movl %ecx, -16(%rsp)
+; CHECK-NEXT:    movl %edi, -4(%rsp)
+; CHECK-NEXT:    movl %edx, -12(%rsp)
+; CHECK-NEXT:    leal (%rdi,%rsi), %eax
+; CHECK-NEXT:    addl %edx, %eax
+; CHECK-NEXT:    addl %ecx, %eax
+; CHECK-NEXT:    retq
 entry:
   %a0 = alloca i32
   %a1 = alloca i32




More information about the llvm-commits mailing list