R600/SI: Use a better error message for unsupported instructions in the assembler
authorTom Stellard <thomas.stellard@amd.com>
Thu, 23 Apr 2015 19:33:51 +0000 (19:33 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Thu, 23 Apr 2015 19:33:51 +0000 (19:33 +0000)
llvm-svn: 235627

llvm/lib/Target/R600/AsmParser/AMDGPUAsmParser.cpp

index 01a56ee..d54412c 100644 (file)
@@ -533,7 +533,7 @@ bool AMDGPUAsmParser::MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
       Out.EmitInstruction(Inst, STI);
       return false;
     case Match_MissingFeature:
-      return Error(IDLoc, "missing feature");
+      return Error(IDLoc, "instruction not supported on this GPU");
 
     case Match_MnemonicFail:
       return Error(IDLoc, "unrecognized instruction mnemonic");