[PATCH] D63079: [PowerPC][HTM] Fix $zero is not a GPRC register for builtin_ttest
Jinsong Ji via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 10 12:03:10 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL362974: [PowerPC][HTM]Fix $zero is not a GPRC register for builtin_ttest (authored by jsji, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D63079?vs=203832&id=203869#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D63079/new/
https://reviews.llvm.org/D63079
Files:
llvm/trunk/lib/Target/PowerPC/PPCInstrHTM.td
llvm/trunk/test/CodeGen/PowerPC/htm.ll
Index: llvm/trunk/test/CodeGen/PowerPC/htm.ll
===================================================================
--- llvm/trunk/test/CodeGen/PowerPC/htm.ll
+++ llvm/trunk/test/CodeGen/PowerPC/htm.ll
@@ -57,16 +57,19 @@
%0 = tail call i32 @llvm.ppc.tendall()
%1 = tail call i32 @llvm.ppc.tresume()
%2 = tail call i32 @llvm.ppc.tsuspend()
+ %3 = tail call i64 @llvm.ppc.ttest()
ret void
; CHECK-LABEL: @test4
; CHECK: tend. 1
; CHECK: tsr. 1
; CHECK: tsr. 0
+; CHECK: tabortwci. 0, {{[0-9]+}}, 0
}
declare i32 @llvm.ppc.tendall()
declare i32 @llvm.ppc.tresume()
declare i32 @llvm.ppc.tsuspend()
+declare i64 @llvm.ppc.ttest()
define void @test5(i64 %v) {
Index: llvm/trunk/lib/Target/PowerPC/PPCInstrHTM.td
===================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCInstrHTM.td
+++ llvm/trunk/lib/Target/PowerPC/PPCInstrHTM.td
@@ -166,6 +166,6 @@
(TSR 0)>;
def : Pat<(i64 (int_ppc_ttest)),
- (RLDICL (i64 (COPY (TABORTWCI 0, ZERO, 0))), 36, 28)>;
+ (RLDICL (i64 (COPY (TABORTWCI 0, (LI 0), 0))), 36, 28)>;
} // [HasHTM]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63079.203869.patch
Type: text/x-patch
Size: 1130 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190610/b3abf069/attachment.bin>
More information about the llvm-commits
mailing list