[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:27 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
+// RUN: not llc -verify-machineinstrs -O0 -mtriple=spirv32-unknown-unknown %t.bc -o %t.spvt 2>&1 | FileCheck %s --check-prefix=CHECK-NO-EXTENSION
+
+// CHECK-SPIRV: Capability BitInstructions
----------------
VyacheslavLevytskyy wrote:
I think this and the next should be CHECK-EXTENSION?
https://github.com/llvm/llvm-project/pull/120571
More information about the llvm-commits
mailing list