summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/PowerPC
diff options
context:
space:
mode:
authorNirav Dave <niravd@google.com>2019-02-22 16:20:34 +0000
committerNirav Dave <niravd@google.com>2019-02-22 16:20:34 +0000
commit46f939c1183560064effc6b838ffdc397df265ac (patch)
treec31fb9265fa3de0d10d39d7f73393841b98e934f /llvm/test/CodeGen/PowerPC
parent44037d7a6377ec8e5542cced73583283334b516b (diff)
downloadbcm5719-llvm-46f939c1183560064effc6b838ffdc397df265ac.tar.gz
bcm5719-llvm-46f939c1183560064effc6b838ffdc397df265ac.zip
Disable big-endian constant store merges from rL354676.
llvm-svn: 354677
Diffstat (limited to 'llvm/test/CodeGen/PowerPC')
-rw-r--r--llvm/test/CodeGen/PowerPC/constant-combines.ll12
1 files changed, 7 insertions, 5 deletions
diff --git a/llvm/test/CodeGen/PowerPC/constant-combines.ll b/llvm/test/CodeGen/PowerPC/constant-combines.ll
index bd14509e2ef..dd40b75d58f 100644
--- a/llvm/test/CodeGen/PowerPC/constant-combines.ll
+++ b/llvm/test/CodeGen/PowerPC/constant-combines.ll
@@ -1,13 +1,14 @@
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
-; RUN: llc -mtriple=powerpc64-unknown-linux-gnu -o - %s | FileCheck --check-prefix=BE %s
+; RUN: llc -mtriple=powerpc64-unknown-linux-gnu -o - %s | FileCheck --check-prefix=BE %s
; RUN: llc -mtriple=powerpc64le-unknown-linux-gnu -o - %s | FileCheck --check-prefix=LE %s
define void @fold_constant_stores_loaddr(i8* %i8_ptr) {
; BE-LABEL: fold_constant_stores_loaddr:
; BE: # %bb.0: # %entry
-; BE-NEXT: li 4, 85
-; BE-NEXT: sldi 4, 4, 57
+; BE-NEXT: li 4, 0
; BE-NEXT: std 4, 0(3)
+; BE-NEXT: li 4, -86
+; BE-NEXT: stb 4, 0(3)
; BE-NEXT: blr
;
; LE-LABEL: fold_constant_stores_loaddr:
@@ -26,9 +27,10 @@ entry:
define void @fold_constant_stores_hiaddr(i8* %i8_ptr) {
; BE-LABEL: fold_constant_stores_hiaddr:
; BE: # %bb.0: # %entry
-; BE-NEXT: li 4, 85
-; BE-NEXT: sldi 4, 4, 57
+; BE-NEXT: li 4, 0
; BE-NEXT: std 4, 0(3)
+; BE-NEXT: li 4, -86
+; BE-NEXT: stb 4, 0(3)
; BE-NEXT: blr
;
; LE-LABEL: fold_constant_stores_hiaddr:
OpenPOWER on IntegriCloud