Displaying 1 result from an estimated 1 matches for "xxxgenasmmatch".
Did you mean:
xxxgenasmmatcher
2019 Mar 14
2
inline assembly matching error
I'm trying to add support for inline assembly and I keep getting this error:
<jal>
"<inline asm>:1:2: error: invalid instruction"
which is due to the fact that MatchInstructionImpl() returns Match_MnemonicFail.
This function is tablegen'ed in XXXGenAsmMatcher.inc and for some reason it can't find JAL even though I can clearly see it in both MatchTable0[] and MnemonicTable
The input was
int main ()
{
asm volatile ("JAL");
return 0;
}
If I go to JAL's definition in XXXInstrInfo.td and change its assembly string from "JAL"...