@@ -314,57 +314,6 @@ void SparcAsmPrinter::printOperand(const MachineInstr *MI, int opNum,
314
314
const MachineOperand &MO = MI->getOperand (opNum);
315
315
SparcMCExpr::VariantKind TF = (SparcMCExpr::VariantKind) MO.getTargetFlags ();
316
316
317
- #ifndef NDEBUG
318
- // Verify the target flags.
319
- if (MO.isGlobal () || MO.isSymbol () || MO.isCPI ()) {
320
- if (MI->getOpcode () == SP::CALL)
321
- assert (TF == SparcMCExpr::VK_Sparc_None &&
322
- " Cannot handle target flags on call address" );
323
- else if (MI->getOpcode () == SP::SETHIi)
324
- assert ((TF == SparcMCExpr::VK_Sparc_HI
325
- || TF == SparcMCExpr::VK_Sparc_H44
326
- || TF == SparcMCExpr::VK_Sparc_HH
327
- || TF == SparcMCExpr::VK_Sparc_LM
328
- || TF == SparcMCExpr::VK_Sparc_TLS_GD_HI22
329
- || TF == SparcMCExpr::VK_Sparc_TLS_LDM_HI22
330
- || TF == SparcMCExpr::VK_Sparc_TLS_LDO_HIX22
331
- || TF == SparcMCExpr::VK_Sparc_TLS_IE_HI22
332
- || TF == SparcMCExpr::VK_Sparc_TLS_LE_HIX22) &&
333
- " Invalid target flags for address operand on sethi" );
334
- else if (MI->getOpcode () == SP::TLS_CALL)
335
- assert ((TF == SparcMCExpr::VK_Sparc_None
336
- || TF == SparcMCExpr::VK_Sparc_TLS_GD_CALL
337
- || TF == SparcMCExpr::VK_Sparc_TLS_LDM_CALL) &&
338
- " Cannot handle target flags on tls call address" );
339
- else if (MI->getOpcode () == SP::TLS_ADDrr)
340
- assert ((TF == SparcMCExpr::VK_Sparc_TLS_GD_ADD
341
- || TF == SparcMCExpr::VK_Sparc_TLS_LDM_ADD
342
- || TF == SparcMCExpr::VK_Sparc_TLS_LDO_ADD
343
- || TF == SparcMCExpr::VK_Sparc_TLS_IE_ADD) &&
344
- " Cannot handle target flags on add for TLS" );
345
- else if (MI->getOpcode () == SP::TLS_LDrr)
346
- assert (TF == SparcMCExpr::VK_Sparc_TLS_IE_LD &&
347
- " Cannot handle target flags on ld for TLS" );
348
- else if (MI->getOpcode () == SP::TLS_LDXrr)
349
- assert (TF == SparcMCExpr::VK_Sparc_TLS_IE_LDX &&
350
- " Cannot handle target flags on ldx for TLS" );
351
- else if (MI->getOpcode () == SP::XORri)
352
- assert ((TF == SparcMCExpr::VK_Sparc_TLS_LDO_LOX10
353
- || TF == SparcMCExpr::VK_Sparc_TLS_LE_LOX10) &&
354
- " Cannot handle target flags on xor for TLS" );
355
- else
356
- assert ((TF == SparcMCExpr::VK_Sparc_LO
357
- || TF == SparcMCExpr::VK_Sparc_M44
358
- || TF == SparcMCExpr::VK_Sparc_L44
359
- || TF == SparcMCExpr::VK_Sparc_HM
360
- || TF == SparcMCExpr::VK_Sparc_TLS_GD_LO10
361
- || TF == SparcMCExpr::VK_Sparc_TLS_LDM_LO10
362
- || TF == SparcMCExpr::VK_Sparc_TLS_IE_LO10 ) &&
363
- " Invalid target flags for small address operand" );
364
- }
365
- #endif
366
-
367
-
368
317
bool CloseParen = SparcMCExpr::printVariantKind (O, TF);
369
318
370
319
switch (MO.getType ()) {
0 commit comments