[llvm] r313545 - [x86] regenerate checks; NFC

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 18 10:33:47 PDT 2017


Author: spatel
Date: Mon Sep 18 10:33:47 2017
New Revision: 313545

URL: http://llvm.org/viewvc/llvm-project?rev=313545&view=rev
Log:
[x86] regenerate checks; NFC

Modified:
    llvm/trunk/test/CodeGen/X86/stores-merging.ll

Modified: llvm/trunk/test/CodeGen/X86/stores-merging.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/stores-merging.ll?rev=313545&r1=313544&r2=313545&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/stores-merging.ll (original)
+++ llvm/trunk/test/CodeGen/X86/stores-merging.ll Mon Sep 18 10:33:47 2017
@@ -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-gn
 ;; 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




More information about the llvm-commits mailing list