summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorJinsong Ji <jji@us.ibm.com>2019-07-16 20:24:33 +0000
committerJinsong Ji <jji@us.ibm.com>2019-07-16 20:24:33 +0000
commit65e34a3143c48aff8a4200964abc195461f473ac (patch)
tree1c1775412afeb3c6b2348b515c5445bed4cdd667 /llvm/lib
parent1b69fd275d589f48ce63bea73e311b7ef89c99ba (diff)
downloadbcm5719-llvm-65e34a3143c48aff8a4200964abc195461f473ac.tar.gz
bcm5719-llvm-65e34a3143c48aff8a4200964abc195461f473ac.zip
[PowerPC][HTM] Fix impossible reg-to-reg copy assert with ttest builtin
Summary: This is exposed by our internal testing. The reduced testcase will assert with "Impossible reg-to-reg copy" We can't use COPY to do 32-bit to 64-bit conversion. Reviewers: kbarton, hfinkel, nemanjai Reviewed By: hfinkel Subscribers: hiraditya, MaskRay, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D64499 llvm-svn: 366255
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/PowerPC/PPCInstrHTM.td4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCInstrHTM.td b/llvm/lib/Target/PowerPC/PPCInstrHTM.td
index 1af65fbb7d3..104b57a70a2 100644
--- a/llvm/lib/Target/PowerPC/PPCInstrHTM.td
+++ b/llvm/lib/Target/PowerPC/PPCInstrHTM.td
@@ -164,6 +164,8 @@ def : Pat<(int_ppc_tsuspend),
(TSR 0)>;
def : Pat<(i64 (int_ppc_ttest)),
- (RLDICL (i64 (COPY (TABORTWCI 0, (LI 0), 0))), 36, 28)>;
+ (RLDICL (i64 (INSERT_SUBREG (i64 (IMPLICIT_DEF)),
+ (TABORTWCI 0, (LI 0), 0), sub_32)),
+ 36, 28)>;
} // [HasHTM]
OpenPOWER on IntegriCloud