summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/PowerPC
diff options
context:
space:
mode:
authorRoman Lebedev <lebedev.ri@gmail.com>2020-02-25 20:08:58 +0300
committerHans Wennborg <hans@chromium.org>2020-02-26 15:22:28 +0100
commit3abd9cd486d9c45867458f64d1294db698c39b4e (patch)
treef4afbd257ea3f436c0748d2e52b46c05922c8d62 /llvm/test/CodeGen/PowerPC
parent57a064f8dc8301ce8b017c84782286816dc58911 (diff)
downloadbcm5719-llvm-3abd9cd486d9c45867458f64d1294db698c39b4e.tar.gz
bcm5719-llvm-3abd9cd486d9c45867458f64d1294db698c39b4e.zip
[Codegen] Revert rL354676/rL354677 and followups - introduced PR43446 miscompile
This reverts https://reviews.llvm.org/D58468 (rL354676, 44037d7a6377ec8e5542cced73583283334b516b), and all and any follow-ups to that code block. https://bugs.llvm.org/show_bug.cgi?id=43446 (cherry picked from commit d20907d1de89bf63b589fadd8c096d4895e47fba)
Diffstat (limited to 'llvm/test/CodeGen/PowerPC')
-rw-r--r--llvm/test/CodeGen/PowerPC/constant-combines.ll8
1 files changed, 6 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/PowerPC/constant-combines.ll b/llvm/test/CodeGen/PowerPC/constant-combines.ll
index dd40b75d58f..05f23051d40 100644
--- a/llvm/test/CodeGen/PowerPC/constant-combines.ll
+++ b/llvm/test/CodeGen/PowerPC/constant-combines.ll
@@ -13,8 +13,10 @@ define void @fold_constant_stores_loaddr(i8* %i8_ptr) {
;
; LE-LABEL: fold_constant_stores_loaddr:
; LE: # %bb.0: # %entry
-; LE-NEXT: li 4, 170
+; LE-NEXT: li 4, 0
+; LE-NEXT: li 5, -86
; LE-NEXT: std 4, 0(3)
+; LE-NEXT: stb 5, 0(3)
; LE-NEXT: blr
entry:
%i64_ptr = bitcast i8* %i8_ptr to i64*
@@ -35,8 +37,10 @@ define void @fold_constant_stores_hiaddr(i8* %i8_ptr) {
;
; LE-LABEL: fold_constant_stores_hiaddr:
; LE: # %bb.0: # %entry
-; LE-NEXT: li 4, 170
+; LE-NEXT: li 4, 0
+; LE-NEXT: li 5, -86
; LE-NEXT: std 4, 0(3)
+; LE-NEXT: stb 5, 0(3)
; LE-NEXT: blr
entry:
%i64_ptr = bitcast i8* %i8_ptr to i64*
OpenPOWER on IntegriCloud