File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1555,17 +1555,15 @@ void PPCAsmPrinter::emitInstruction(const MachineInstr *MI) {
1555
1555
// or a load/store instruction (that directly loads or stores off of the
1556
1556
// thread pointer) with an immediate operand having the MO_TPREL_FLAG.
1557
1557
// Such instructions do not otherwise arise.
1558
+ if (!HasAIXSmallLocalExecTLS)
1559
+ break ;
1558
1560
bool IsMIADDI8 = MI->getOpcode () == PPC::ADDI8;
1559
1561
unsigned OpNum = IsMIADDI8 ? 2 : 1 ;
1560
1562
const MachineOperand &MO = MI->getOperand (OpNum);
1561
1563
unsigned Flag = MO.getTargetFlags ();
1562
1564
if (Flag == PPCII::MO_TPREL_FLAG ||
1563
1565
Flag == PPCII::MO_GOT_TPREL_PCREL_FLAG ||
1564
1566
Flag == PPCII::MO_TPREL_PCREL_FLAG) {
1565
- assert (HasAIXSmallLocalExecTLS &&
1566
- " addi, or load/stores with thread-pointer only expected with "
1567
- " local-exec small TLS" );
1568
-
1569
1567
LowerPPCMachineInstrToMCInst (MI, TmpInst, *this );
1570
1568
1571
1569
const MCExpr *Expr = getAdjustedLocalExecExpr (MO, MO.getOffset ());
You can’t perform that action at this time.
0 commit comments