@@ -1388,9 +1388,6 @@ class AMDGPUAsmParser : public MCTargetAsmParser {
1388
1388
bool IsAtomic);
1389
1389
1390
1390
public:
1391
- enum AMDGPUMatchResultTy {
1392
- Match_PreferE32 = FIRST_TARGET_MATCH_RESULT_TY
1393
- };
1394
1391
enum OperandMode {
1395
1392
OperandMode_Default,
1396
1393
OperandMode_NSA,
@@ -5262,15 +5259,11 @@ bool AMDGPUAsmParser::MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
5262
5259
Variant);
5263
5260
// We order match statuses from least to most specific. We use most specific
5264
5261
// status as resulting
5265
- // Match_MnemonicFail < Match_InvalidOperand < Match_MissingFeature < Match_PreferE32
5266
- if ((R == Match_Success) ||
5267
- (R == Match_PreferE32) ||
5268
- (R == Match_MissingFeature && Result != Match_PreferE32) ||
5269
- (R == Match_InvalidOperand && Result != Match_MissingFeature
5270
- && Result != Match_PreferE32) ||
5271
- (R == Match_MnemonicFail && Result != Match_InvalidOperand
5272
- && Result != Match_MissingFeature
5273
- && Result != Match_PreferE32)) {
5262
+ // Match_MnemonicFail < Match_InvalidOperand < Match_MissingFeature
5263
+ if (R == Match_Success || R == Match_MissingFeature ||
5264
+ (R == Match_InvalidOperand && Result != Match_MissingFeature) ||
5265
+ (R == Match_MnemonicFail && Result != Match_InvalidOperand &&
5266
+ Result != Match_MissingFeature)) {
5274
5267
Result = R;
5275
5268
ErrorInfo = EI;
5276
5269
}
@@ -5316,9 +5309,6 @@ bool AMDGPUAsmParser::MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
5316
5309
return Error (ErrorLoc, " invalid operand for instruction" );
5317
5310
}
5318
5311
5319
- case Match_PreferE32:
5320
- return Error (IDLoc, " internal error: instruction without _e64 suffix "
5321
- " should be encoded as e32" );
5322
5312
case Match_MnemonicFail:
5323
5313
llvm_unreachable (" Invalid instructions should have been handled already" );
5324
5314
}
0 commit comments