[PATCH] D61935: Fixes PPC64 Tbegin disassembling

Philippe Antoine via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 17 01:55:05 PDT 2019


catenacyber updated this revision to Diff 199994.
catenacyber added a comment.

Adds a test case


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D61935/new/

https://reviews.llvm.org/D61935

Files:
  lib/Target/PowerPC/PPCInstrHTM.td
  test/MC/Disassembler/PowerPC/ppc64-encoding.txt


Index: test/MC/Disassembler/PowerPC/ppc64-encoding.txt
===================================================================
--- test/MC/Disassembler/PowerPC/ppc64-encoding.txt
+++ test/MC/Disassembler/PowerPC/ppc64-encoding.txt
@@ -750,3 +750,6 @@
 
 # CHECK: stop
 0x4c 0x00 0x02 0xe4
+
+# CHECK: tbegin. 1
+0x7c 0x20 0x05 0x1d
Index: lib/Target/PowerPC/PPCInstrHTM.td
===================================================================
--- lib/Target/PowerPC/PPCInstrHTM.td
+++ lib/Target/PowerPC/PPCInstrHTM.td
@@ -26,8 +26,9 @@
 
 let Predicates = [HasHTM] in {
 
+let Defs = [CR0] in
 def TBEGIN : XForm_htm0 <31, 654,
-                         (outs crrc0:$ret), (ins u1imm:$R), "tbegin. $R", IIC_SprMTSPR, []>;
+                         (outs), (ins u1imm:$R), "tbegin. $R", IIC_SprMTSPR, []>;
 
 def TEND : XForm_htm1 <31, 686,
                        (outs crrc0:$ret), (ins u1imm:$A), "tend. $A", IIC_SprMTSPR, []>;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61935.199994.patch
Type: text/x-patch
Size: 925 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190517/731c8926/attachment.bin>


More information about the llvm-commits mailing list