Make LowerAsmOperandForConstraint() accept an undef operand for the "i" constraint.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Interesting, did this come from actual C code? It looks to me like GCC and Clang both currently reject such input:
void foo(void) { int x; asm volatile (""::"i"(x)); }
Why should we allow that? Seems more indicative of a bug in the source code? Or do you have a different test case that more clearly illuminates the issue in LLVM?
llvm/test/CodeGen/SystemZ/asm-20.ll | ||
---|---|---|
3 | Probably don't need to reorder these? |
Comment Actions
Thanks for review, but as you suspected this test case did not reflect the true problem. A new patch is suggested at: https://reviews.llvm.org/D90231.
Probably don't need to reorder these?