From 83d8d62399b1aa1e9243853c62e24c6fa2e14d39 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 llvm-svn: 367424 --- llvm/test/CodeGen/X86/alias-static-alloca.ll | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/llvm/test/CodeGen/X86/alias-static-alloca.ll b/llvm/test/CodeGen/X86/alias-static-alloca.ll index f4ca7e3..01d5e50 100644 --- a/llvm/test/CodeGen/X86/alias-static-alloca.ll +++ b/llvm/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.7.4