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, []>; 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