[clang] [Clang][AMDGPU] Enable type-checking on __builtin_amdgcn_raw_ptr_buffer_atomic_{{add|fadd|fmin|fmax}} (PR #164824)

Juan Manuel Martinez CaamaƱo via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 24 07:48:11 PDT 2025


================
@@ -0,0 +1,18 @@
+// RUN: %clang_cc1 -fsyntax-only -triple amdgcn -target-cpu gfx90a -verify %s -fcuda-is-device
+// RUN: %clang_cc1 -fsyntax-only -triple x86_64 -aux-triple amdgcn -verify %s
+
+typedef _Float16 __attribute__((ext_vector_type(2))) float16x2_t;
----------------
jmmartinez wrote:

If I understand https://clang.llvm.org/docs/LanguageExtensions.html#half-precision-floating-point , the difference between `fp16` and `_Float16` is not in the representation, but in the promotion rules. Am I right ?

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


More information about the cfe-commits mailing list