[llvm] [SPIRV] Add support for `cl_khr_extended_bit_ops` (PR #120571)

Vyacheslav Levytskyy via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 19 07:28:26 PST 2024


================
@@ -0,0 +1,1191 @@
+// RUN: %clang_cc1 -triple spir-unknown-unknown -O1 -cl-std=CL2.0 -fdeclare-opencl-builtins -finclude-default-header -emit-llvm-bc %s -o %t.bc
+// RUN: llc -verify-machineinstrs -O0 -mtriple=spirv32-unknown-unknown %t.bc --spirv-ext=+SPV_KHR_bit_instructions -o - | FileCheck %s --check-prefix=CHECK-EXTENSION
----------------
VyacheslavLevytskyy wrote:

Is it possible to add smth like `; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv64-unknown-unknown %s -o - -filetype=obj | spirv-val %}` for this test case?


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


More information about the llvm-commits mailing list