[llvm] [TargetVerifier][AMDGPU] Add TargetVerifier. (PR #123609)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 2 06:27:55 PDT 2025


================
@@ -0,0 +1,6 @@
+; RUN: not not llc -mtriple=amdgcn -mcpu=gfx900 -verify-machineinstrs -enable-new-pm -verify-each -o - < %s 2>&1 | FileCheck %s
+
+define amdgpu_cs i32 @nonvoid_shader() {
+; CHECK: LLVM ERROR
+  ret i32 0
+}
----------------
arsenm wrote:

I think the generic IR verifier already gets this one. Also error messages need to be checked 

https://github.com/llvm/llvm-project/pull/123609


More information about the llvm-commits mailing list