[llvm] [VectorCombine] Generalize foldBitOpOfBitcasts to support more cast operations (PR #148350)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 21 01:33:44 PDT 2025
================
@@ -0,0 +1,263 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
+; RUN: opt < %s -passes=vector-combine -S -mtriple=x86_64-- | FileCheck %s
+
+; Test bitwise operations with bitcast
+define <4 x i32> @and_bitcast_v4f32_to_v4i32(<4 x float> %a, <4 x float> %b) {
----------------
RKSimon wrote:
These are just negative tests as they bitcast from fp - keep one as a negative test but use other int types for the standard tests.
https://github.com/llvm/llvm-project/pull/148350
More information about the llvm-commits
mailing list