[llvm] Add support for atomic instruction on floating-point numbers (PR #81683)

Michal Paszkowski via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 14 09:56:46 PST 2024


================
@@ -0,0 +1,43 @@
+; RUN: not llc -O0 -mtriple=spirv32-unknown-unknown %s -o %t.spvt 2>&1 | FileCheck %s --check-prefix=CHECK-ERROR
+
+; RUN: llc -O0 -mtriple=spirv32-unknown-unknown --spirv-extensions=SPV_EXT_shader_atomic_float_add %s -o - | FileCheck %s
+
+; CHECK-ERROR: LLVM ERROR: The atomic float instruction requires the following SPIR-V extension: SPV_EXT_shader_atomic_float_add
----------------
michalpaszkowski wrote:

Neat idea!

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


More information about the llvm-commits mailing list