[clang] [llvm] [clang][SPIR-V] Add support for AMDGCN flavoured SPIRV (PR #89796)

Matt Arsenault via cfe-commits cfe-commits at lists.llvm.org
Wed May 8 10:16:07 PDT 2024


================
@@ -0,0 +1,111 @@
+// REQUIRES: amdgpu-registered-target
+// RUN: %clang_cc1 -triple spirv64-amd-amdhsa -fsyntax-only -verify %s
+
+#pragma OPENCL EXTENSION cl_khr_fp64 : enable
+
+kernel void test () {
+
+  int sgpr = 0, vgpr = 0, imm = 0;
+
+  // sgpr constraints
+  __asm__ ("s_mov_b32 %0, %1" : "=s" (sgpr) : "s" (imm) : );
----------------
arsenm wrote:

Missing the codegen tests for these? 

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


More information about the cfe-commits mailing list