]> granicus.if.org Git - llvm/commitdiff
[X86] Regenerate alias-static-alloca test checks to make D65354 diff easier
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 31 Jul 2019 12:27:47 +0000 (12:27 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 31 Jul 2019 12:27:47 +0000 (12:27 +0000)
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@367424 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/X86/alias-static-alloca.ll

index f4ca7e39f4fcb1385647f5105fbaaa678db4b149..01d5e506f6da8e82fcd37e22ef7e1de3b3f300e9 100644 (file)
@@ -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