From 67c7cd6f6908a95fc97e5523d0fec0325762373f Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Wed, 31 Jul 2019 12:27:47 +0000 Subject: [PATCH] [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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@367424 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/X86/alias-static-alloca.ll | 28 ++++++++++++------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/test/CodeGen/X86/alias-static-alloca.ll b/test/CodeGen/X86/alias-static-alloca.ll index f4ca7e39f4f..01d5e506f6d 100644 --- a/test/CodeGen/X86/alias-static-alloca.ll +++ b/test/CodeGen/X86/alias-static-alloca.ll @@ -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 -- 2.49.0