================
@@ -3509,7 +3535,9 @@ OpFoldResult cir::VecCmpOp::fold(FoldAdaptor adaptor) {
     }
     }
 
-    elements[i] = cir::IntAttr::get(getType().getElementType(), cmpResult);
+    // Vector comparison results are 0 (false) or -1 / all-ones (true).
----------------
andykaylor wrote:

This isn't quite right. A VecCmpOp can also be created that returns a vector of 
signed i1. Technically, I guess the true case there is -1 as an i1, but it's 
used differently in that case.

https://github.com/llvm/llvm-project/pull/202502
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to