[NVPTX] Fix issues in ptxas integration to LIT tests
authorAndrew Savonichev <andrew.savonichev@gmail.com>
Mon, 3 Oct 2022 21:23:55 +0000 (00:23 +0300)
committerAndrew Savonichev <andrew.savonichev@gmail.com>
Mon, 3 Oct 2022 21:29:42 +0000 (00:29 +0300)
commit5585d99835e83cca79ead9f0d90fcfab927391d5
treebeecbfa81829a6f213f445f895731cd1da3380bc
parent3933c43d9008bb1b151156da92827a109e7963b6
[NVPTX] Fix issues in ptxas integration to LIT tests

1) Fixed a typo in PTXAS_EXECUTABLE CMake variable (PXTAS -> PTXAS).

2) Version check was implemented incorrectly,
   now version (major, minor) is converted to int for comparison.

3) ptxas -arch argument was incorrect (or missing) in 3 tests.

Differential Revision: https://reviews.llvm.org/D127866
llvm/test/CodeGen/NVPTX/atomicrmw-expand.ll
llvm/test/CodeGen/NVPTX/bug52623.ll
llvm/test/CodeGen/NVPTX/ldu-ldg.ll
llvm/test/lit.cfg.py
llvm/test/lit.site.cfg.py.in