[llvm] [PowerPC]redesign the target flags (PR #69695)

Chen Zheng via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 9 23:04:17 PST 2023


================
@@ -1539,7 +1528,9 @@ void PPCAsmPrinter::emitInstruction(const MachineInstr *MI) {
     // with an immediate operand having the MO_TPREL_FLAG. Such an instruction
     // does not otherwise arise.
     const MachineOperand &MO = MI->getOperand(2);
-    if ((MO.getTargetFlags() & PPCII::MO_TPREL_FLAG) != 0) {
+    if (MO.getTargetFlags() == PPCII::MO_TPREL_FLAG ||
----------------
chenzheng1030 wrote:

Done

https://github.com/llvm/llvm-project/pull/69695


More information about the llvm-commits mailing list