llvm-project/llvm/test/CodeGen/NVPTX/griddepcontrol.ll
Justin Fargnoli 4d2e1e1c74
Reland "[lit] Refactor available ptxas features" (#155923)
Reland #154439.  Reverted with #155914.

Account for:
- Windows `ptxas` outputting error messages to `stdout` instead of
`stderr`
- Tests in `llvm/test/DebugInfo/NVPTX`
2025-09-02 10:42:25 -07:00

18 lines
614 B
LLVM

; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
; RUN: llc < %s -mcpu=sm_90 -march=nvptx64 | FileCheck %s
; RUN: %if ptxas-sm_90 %{ llc < %s -mcpu=sm_90 -march=nvptx64 | %ptxas-verify -arch=sm_90 %}
define void @griddepcontrol() {
; CHECK-LABEL: griddepcontrol(
; CHECK: {
; CHECK-EMPTY:
; CHECK-EMPTY:
; CHECK-NEXT: // %bb.0:
; CHECK-NEXT: griddepcontrol.launch_dependents;
; CHECK-NEXT: griddepcontrol.wait;
; CHECK-NEXT: ret;
call void @llvm.nvvm.griddepcontrol.launch.dependents()
call void @llvm.nvvm.griddepcontrol.wait()
ret void
}