Skip to content

Commit 3c03108

Browse files
authored
[ARM] Enable verifyInstructionPredicates (#139262)
All the tests pass and a bootstrap and run of the llvm-test-suite passed successfully. Enable verifyInstructionPredicates so that instructions which are invalid with the current set of features produce an error.
1 parent fbf08a6 commit 3c03108

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/lib/Target/ARM/ARMAsmPrinter.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1442,9 +1442,8 @@ void ARMAsmPrinter::EmitUnwindingInstruction(const MachineInstr *MI) {
14421442
#include "ARMGenMCPseudoLowering.inc"
14431443

14441444
void ARMAsmPrinter::emitInstruction(const MachineInstr *MI) {
1445-
// TODOD FIXME: Enable feature predicate checks once all the test pass.
1446-
// ARM_MC::verifyInstructionPredicates(MI->getOpcode(),
1447-
// getSubtargetInfo().getFeatureBits());
1445+
ARM_MC::verifyInstructionPredicates(MI->getOpcode(),
1446+
getSubtargetInfo().getFeatureBits());
14481447

14491448
const DataLayout &DL = getDataLayout();
14501449
MCTargetStreamer &TS = *OutStreamer->getTargetStreamer();

0 commit comments

Comments
 (0)