[llvm] [SPIR-V] Fix invalid OpIMul emitted for i1 multiplication (PR #207388)
Juan Manuel Martinez CaamaƱo via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 6 01:02:54 PDT 2026
================
@@ -84,6 +85,19 @@ define i32 @scalar_sub(i32 %a, i32 %b) {
;; Test mul on scalar:
+define i1 @bool_mul(i1 %a, i1 %b) {
+ %c = mul i1 %a, %b
----------------
jmmartinez wrote:
What happens if the `mul` has a `nsw/nuw` flag?
https://github.com/llvm/llvm-project/pull/207388
More information about the llvm-commits
mailing list