[llvm] [SPIR-V] Insert a bitcast before load/store instruction to keep SPIR-V code valid (PR #84069)

Vyacheslav Levytskyy via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 6 00:12:53 PST 2024


================
@@ -1,5 +1,8 @@
 ; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s
 
+target datalayout = "e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024"
+target triple = "spir64"
----------------
VyacheslavLevytskyy wrote:

I fixed tests by removing explicit targets and adding spirv-val where it was missed. Thank you for the suggestion.

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


More information about the llvm-commits mailing list