Open nathanchance opened 2 weeks ago
@llvm/issue-subscribers-backend-x86
Author: Nathan Chancellor (nathanchance)
I'm not sure how to implement this for memory references. Seems like you'd need the frontend to pass along the size of the variable being referenced.
As initially reported on LKML: https://lore.kernel.org/202411180620.8uhr11le-lkp@intel.com/
https://godbolt.org/z/o6bWzfh9x
From the GCC documentation:
z
b/w/l/q
).%z0
l
I see where the X86 specific modifiers are implemented in
X86AsmPrinter::PrintAsmOperand()
but I am not entirely sure how to implement this there. I am happy to try with any guidance.