summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2017-09-18 17:33:47 +0000
committerSanjay Patel <spatel@rotateright.com>2017-09-18 17:33:47 +0000
commit078d5d978c372c43c8ef4f26af50b4b2c71334a3 (patch)
treecd9617e4d315f8f982acc751a54d53ab457e4e31 /llvm/test
parent7476f629ed623c8bcb995431ca93cee3d2ddeaa1 (diff)
downloadbcm5719-llvm-078d5d978c372c43c8ef4f26af50b4b2c71334a3.tar.gz
bcm5719-llvm-078d5d978c372c43c8ef4f26af50b4b2c71334a3.zip
[x86] regenerate checks; NFC
llvm-svn: 313545
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/X86/stores-merging.ll33
1 files changed, 17 insertions, 16 deletions
diff --git a/llvm/test/CodeGen/X86/stores-merging.ll b/llvm/test/CodeGen/X86/stores-merging.ll
index 49a3f8c680c..ad1b47853f7 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
OpenPOWER on IntegriCloud