Some instruction like VPMULDQ is NOT the variant of VPMULD but a new one
So we should make sure the suffix matcher only works for memory variant
that has the same size with the suffix.
Currently we only check for SSE/AVX* instructions, because many legacy
instructions didn't declare the alias instructions of their variants.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp | ||
---|---|---|
3461 | How about isVectorReg? |
llvm/lib/Target/X86/AsmParser/X86Operand.h | ||
---|---|---|
461 | Include MMX? This is also currently broken maskmov %mm0, %mm0 should only accept |
I'd like a more robust way to do this, but I don't have any great ideas how. So I guess, LGTM Please put "[X86]" in the commit message before commiting and in review titles for X86 specific things. I have an email filter looking for that. I'd guess others do as well.
llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp | ||
---|---|---|
3474 | This breaks assembling of movzb 1280(%rbx,%r12), %r12 (!HasVectorReg) I fixed it in 5b4cd2d4c42360469ccc9f59aa04a1a24b290df9 . There may be further clean-ups. |
How about isVectorReg?