PTX supports those instructions for i64 starting from 4.3.
The patch also marks corresponding DAG nodes legal for both i32 and i64.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
LGTM.
Nice. We could use a bit more tests, though.
llvm/test/CodeGen/NVPTX/add-sub-128bit.ll | ||
---|---|---|
4 | We should add ptxas test for ptx43+ here, too. | |
8 | CHECK -> COMMON | |
9 | Can you think of a way to test 32-bit sub/add-with-carry that the patch makes legal? |
llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp | ||
---|---|---|
490 | BTW, ADDC/SUBC are apparently deprecated in favor of ADDCARRY/SUBCARRY Perhaps those should be added as well. |
BTW, ADDC/SUBC are apparently deprecated in favor of ADDCARRY/SUBCARRY
https://github.com/llvm/llvm-project/blob/a83f4b9cda57c5b3d414ec3bcf9ac891b2ec27e1/llvm/include/llvm/CodeGen/ISDOpcodes.h#L269
Perhaps those should be added as well.