Issue |
137028
|
Summary |
[NVPTX] Test SM Versions via `ptxas`
|
Labels |
new issue
|
Assignees |
|
Reporter |
justinfargnoli
|
[`llvm/test/CodeGen/NVPTX/sm-version.ll`](https://github.com/llvm/llvm-project/blob/385b07b5038ff65f084446a92849e54fd86bd3a7/llvm/test/CodeGen/NVPTX/sm-version.ll) checks that the PTX and SM versions are supported by `llc`. However, we should also check that they're supported in `ptxas`.
Here's an example of how to run a test with `ptxas`: ([source](https://github.com/llvm/llvm-project/blob/0f5965fa9c67969e4de7374362b6af49bf400b3b/llvm/test/CodeGen/NVPTX/inline-asm.ll#L2))
```
; RUN: %if ptxas %{ llc < %s -mtriple=nvptx64 -mcpu=sm_20 | %ptxas-verify %}
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs