[clang] [llvm] [AMDGPU] Fix monitor-sleep duration validation on GFX12.5 (PR #241042)
Yaxun Liu via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 13 19:26:05 PST 2026
================
@@ -0,0 +1,35 @@
+// NOTE: Do not autogenerate. -verify checks target-specific diagnostics.
+// REQUIRES: amdgpu-registered-target
+// RUN: %clang_cc1 -triple amdgpu12.50-amd-amdhsa -fcuda-is-device -x hip -DNO_SLEEP_FOREVER -fsyntax-only -verify=range,forever %s
+// RUN: %clang_cc1 -triple amdgpu12.50s-amd-amdhsa -fcuda-is-device -x hip -DNO_SLEEP_FOREVER -fsyntax-only -verify=range,forever %s
+// RUN: %clang_cc1 -triple amdgpu12.51-amd-amdhsa -fcuda-is-device -x hip -fsyntax-only -verify=range,negative %s
+// RUN: %clang_cc1 -triple amdgpu12.50-amd-amdhsa -target-feature -no-sleep-forever -fcuda-is-device -x hip -fsyntax-only -verify=range,negative %s
+// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -aux-triple amdgpu12.50-amd-amdhsa -x hip -DNO_SLEEP_FOREVER -fsyntax-only -verify=host %s
+// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -aux-triple amdgpu13-amd-amdhsa -x hip -DNO_SLEEP_FOREVER -fsyntax-only -verify=host %s
+// RUN: %clang_cc1 -triple amdgpu12.5-amd-amdhsa -fcuda-is-device -x hip -fsyntax-only -verify=range,negative %s
+// RUN: %clang_cc1 -triple amdgpu13-amd-amdhsa -fcuda-is-device -x hip -fsyntax-only -verify=range,negative %s
+// RUN: %clang_cc1 -triple amdgpu13.10-amd-amdhsa -fcuda-is-device -x hip -fsyntax-only -verify=range,negative %s
+// host-no-diagnostics
+
+#include "Inputs/cuda.h"
+
----------------
yxsamliu wrote:
Added tests for C and OpenCL.
https://github.com/llvm/llvm-project/pull/241042
More information about the cfe-commits
mailing list