[llvm] [SPIR-V] Add Float16 support when targeting Vulkan (PR #77115)

Nathan Gauër via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 9 03:44:12 PST 2024


================
@@ -1,12 +1,18 @@
 ; RUN: llc -O0 -mtriple=spirv-unknown-unknown %s -o - | FileCheck %s
 ; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s
 ; RUN: llc -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s
+; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv-unknown-unknown %s -o - -filetype=obj | spirv-val %}
 
 define void @main() {
 entry:
+; CHECK-DAG:     %[[#half:]] = OpTypeFloat 16
----------------
Keenuts wrote:

IS there a test checking Float16 capability is added when this type is used?

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


More information about the llvm-commits mailing list