[llvm] [SPIR-V] Fix broken test due to G_BITCAST (PR #114242)

via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 30 07:52:21 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-backend-spir-v

Author: Nathan Gauër (Keenuts)

<details>
<summary>Changes</summary>

G_BITCAST emission in the SPIR-V backend is not accepted by the verifier. DIsabling verifier for impacted tests until https://github.com/llvm/llvm-project/pull/114216 is merged.

---
Full diff: https://github.com/llvm/llvm-project/pull/114242.diff


1 Files Affected:

- (modified) llvm/test/CodeGen/SPIRV/hlsl-intrinsics/group_memory_barrier_with_group_sync.ll (+2-1) 


``````````diff
diff --git a/llvm/test/CodeGen/SPIRV/hlsl-intrinsics/group_memory_barrier_with_group_sync.ll b/llvm/test/CodeGen/SPIRV/hlsl-intrinsics/group_memory_barrier_with_group_sync.ll
index 6955411a0e4e99..e314361fe41812 100644
--- a/llvm/test/CodeGen/SPIRV/hlsl-intrinsics/group_memory_barrier_with_group_sync.ll
+++ b/llvm/test/CodeGen/SPIRV/hlsl-intrinsics/group_memory_barrier_with_group_sync.ll
@@ -1,4 +1,5 @@
-; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv-unknown-unknown %s -o - | FileCheck %s
+; TODO(pull/110270): verifier, fix G_BITCAST error "bitcast must change type"
+; RUN: llc -O0 -mtriple=spirv-unknown-unknown %s -o - | FileCheck %s
 ; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv-unknown-unknown %s -o - -filetype=obj | spirv-val %}
 
 ; CHECK: OpMemoryModel Logical GLSL450

``````````

</details>


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


More information about the llvm-commits mailing list