[llvm] [GlobalISel] emit G_BITCAST in widenScalarMergeValues when DstTy does not match WideTy (PR #203014)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 17 08:23:19 PDT 2026
================
@@ -1897,6 +1897,86 @@ TEST_F(AArch64GISelMITest, WidenScalarMergeValuesPointer) {
EXPECT_TRUE(CheckMachineFunction(*MF, CheckStr)) << *MF;
}
+TEST_F(AArch64GISelMITest, WidenScalarMergeValuesFloat) {
+ setUp();
+ if (!TM)
+ GTEST_SKIP();
+
+ constexpr ElementCount EC0 = ElementCount::getFixed(0);
+ const LLT I8 = LLT(LLT::Kind::INTEGER, EC0, 8);
+ const LLT I16 = LLT(LLT::Kind::INTEGER, EC0, 16);
+ const LLT F16 = LLT::float16();
----------------
arsenm wrote:
Use normal LLT::integer(Size) constructor? Plus I'm surprised fixed size of 0 doesn't assert
https://github.com/llvm/llvm-project/pull/203014
More information about the llvm-commits
mailing list