From 078d5d978c372c43c8ef4f26af50b4b2c71334a3 Mon Sep 17 00:00:00 2001 From: Sanjay Patel Date: Mon, 18 Sep 2017 17:33:47 +0000 Subject: [PATCH] [x86] regenerate checks; NFC llvm-svn: 313545 --- llvm/test/CodeGen/X86/stores-merging.ll | 33 +++++++++++++------------ 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/llvm/test/CodeGen/X86/stores-merging.ll b/llvm/test/CodeGen/X86/stores-merging.ll index 49a3f8c680c6..ad1b47853f7a 100644 --- a/llvm/test/CodeGen/X86/stores-merging.ll +++ b/llvm/test/CodeGen/X86/stores-merging.ll @@ -1,7 +1,5 @@ -; RUN: llc < %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-unknown-unknown | FileCheck %s %structTy = type { i8, i32, i32 } @@ -12,11 +10,12 @@ target triple = "x86_64-unknown-linux-gnu" ;; order, the second in decreasing -- but in both cases should have ;; the same result in memory in the end. -; CHECK-LABEL: redundant_stores_merging: -; CHECK: movabsq $1958505086977, %rax -; CHECK: movq %rax, e+4(%rip) define void @redundant_stores_merging() { -entry: +; CHECK-LABEL: redundant_stores_merging: +; CHECK: # BB#0: +; CHECK-NEXT: movabsq $1958505086977, %rax # imm = 0x1C800000001 +; CHECK-NEXT: movq %rax, e+{{.*}}(%rip) +; CHECK-NEXT: retq store i32 1, i32* getelementptr inbounds (%structTy, %structTy* @e, i64 0, i32 1), align 4 store i32 123, i32* getelementptr inbounds (%structTy, %structTy* @e, i64 0, i32 2), align 4 store i32 456, i32* getelementptr inbounds (%structTy, %structTy* @e, i64 0, i32 2), align 4 @@ -24,11 +23,12 @@ entry: } ;; This variant tests PR25154. -; CHECK-LABEL: redundant_stores_merging_reverse: -; CHECK: movabsq $1958505086977, %rax -; CHECK: movq %rax, e+4(%rip) define void @redundant_stores_merging_reverse() { -entry: +; CHECK-LABEL: redundant_stores_merging_reverse: +; CHECK: # BB#0: +; CHECK-NEXT: movabsq $1958505086977, %rax # imm = 0x1C800000001 +; CHECK-NEXT: movq %rax, e+{{.*}}(%rip) +; CHECK-NEXT: retq store i32 123, i32* getelementptr inbounds (%structTy, %structTy* @e, i64 0, i32 2), align 4 store i32 456, i32* getelementptr inbounds (%structTy, %structTy* @e, i64 0, i32 2), align 4 store i32 1, i32* getelementptr inbounds (%structTy, %structTy* @e, i64 0, i32 1), align 4 @@ -42,11 +42,12 @@ entry: ;; store to 3 comes first (e.g. by merging the stores to 0 and 2 into ;; a movl, after the store to 3). -;; CHECK-LABEL: overlapping_stores_merging: -;; CHECK: movl $1, b(%rip) -;; CHECK: movw $2, b+3(%rip) define void @overlapping_stores_merging() { -entry: +; CHECK-LABEL: overlapping_stores_merging: +; CHECK: # BB#0: +; CHECK-NEXT: movl $1, {{.*}}(%rip) +; CHECK-NEXT: movw $2, b+{{.*}}(%rip) +; CHECK-NEXT: retq store i16 0, i16* bitcast (i8* getelementptr inbounds ([8 x i8], [8 x i8]* @b, i64 0, i64 2) to i16*), align 2 store i16 2, i16* bitcast (i8* getelementptr inbounds ([8 x i8], [8 x i8]* @b, i64 0, i64 3) to i16*), align 1 store i16 1, i16* bitcast (i8* getelementptr inbounds ([8 x i8], [8 x i8]* @b, i64 0, i64 0) to i16*), align 2