Skip to content

Commit d7032bc

Browse files
author
Jinsong Ji
committed
[PowerPC][NFC] Reclaim TSFlags bit 6
We removed UseVSXReg flag in https://reviews.llvm.org/D58685 But we did not reclain the bit 6 it was assigned, this will become confusing and a hole later.. We should reclaim it as early as possible before new bits. Reviewed By: sfertile Differential Revision: https://reviews.llvm.org/D72649
1 parent 47f99d2 commit d7032bc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/lib/Target/PowerPC/PPCInstrFormats.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class I<bits<6> opcode, dag OOL, dag IOL, string asmstr, InstrItinClass itin>
3939

4040
// Indicate that this instruction is of type X-Form Load or Store
4141
bits<1> XFormMemOp = 0;
42-
let TSFlags{7} = XFormMemOp;
42+
let TSFlags{6} = XFormMemOp;
4343

4444
// Fields used for relation models.
4545
string BaseName = "";

llvm/lib/Target/PowerPC/PPCInstrInfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ enum {
6565
NewDef_Shift = 6,
6666

6767
/// This instruction is an X-Form memory operation.
68-
XFormMemOp = 0x1 << (NewDef_Shift+1)
68+
XFormMemOp = 0x1 << NewDef_Shift
6969
};
7070
} // end namespace PPCII
7171

0 commit comments

Comments
 (0)