[llvm] [SPIRV] Translate {uinc/udec}_wrap as opaque intrinsics for AMD (PR #215507)
Arseniy Obolenskiy via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 11 03:30:12 PDT 2026
================
@@ -0,0 +1,59 @@
+; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv64-amd-amdhsa %s -o - | FileCheck %s
+; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv64-amd-amdhsa %s -o - -filetype=obj | spirv-val %}
+; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv32-amd-amdhsa %s -o - | FileCheck %s
+; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv32-amd-amdhsa %s -o - -filetype=obj | spirv-val %}
+
----------------
aobolensk wrote:
Shall we add checks on non-AMD triples (in this and other test files)? I guess expectations are quite different there.
Also, do we have some amdhsa-specific dir where we store all amdhsa specific tests? If yes, maybe we could move these tests there, otherwise nothing should be done
https://github.com/llvm/llvm-project/pull/215507
More information about the llvm-commits
mailing list