You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@G_addr = global i20 ptrtoint (<4 x i32>* @g to i20)
The IR does not seem to make much sense to me and I do not think you can actually express it in PTX, either.
expected syntax for bit wise And in NVPTX
I strongly suspect that ptxas will not accept an attempt to initialize a global with an expression. The syntax allowed by PTX is very limited and my naive attempt didn't work: https://godbolt.org/z/zfnsfecMd
While compiling the following code using nvptx64, Assembly printer hit an unreachable. https://godbolt.org/z/4xEP8js58
Cause
When lowering
i20
,NVPTXAsmPrinter::lowerConstantForGV
creates anAnd
with -1 to extract bits. (Shown below)llvm-project/llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
Lines 2040 to 2060 in c823517
However,
And
is not handled when printing the assembly inNVPTXAsmPrinter::printMCExpr
. (Shown below)llvm-project/llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
Lines 2117 to 2129 in c823517
It shouldn't be a hard fix, if anyone can tell me what are the expected syntax for bit wise
And
in NVPTXThe text was updated successfully, but these errors were encountered: