]> granicus.if.org Git - llvm/commitdiff
[x86] regenerate checks; NFC
authorSanjay Patel <spatel@rotateright.com>
Mon, 18 Sep 2017 17:33:47 +0000 (17:33 +0000)
committerSanjay Patel <spatel@rotateright.com>
Mon, 18 Sep 2017 17:33:47 +0000 (17:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313545 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/X86/stores-merging.ll

index 49a3f8c680c614fd9f21f10d3df210be1043e441..ad1b47853f7a275c0e14417ed27ea2621ef17c55 100644 (file)
@@ -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