28 lines · plain
1; RUN: llc -mtriple=mips < %s2; RUN: llc -mtriple=mips -mattr=+msa,+fp64,+mips32r2 < %s3; RUN: llc -mtriple=mipsel < %s4; RUN: llc -mtriple=mipsel -mattr=+msa,+fp64,+mips32r2 < %s5 6; This test originally failed for MSA with a "Cannot select ..." error.7; This happened because the legalizer treated undef's in the <4 x float>8; constant as equivalent to the defined elements when checking if it a constant9; splat, but then proceeded to legalize the undef's to zero, leaving it as a10; non-splat that cannot be selected. It should have eliminated the undef's by11; rewriting the splat constant.12 13; It should at least successfully build.14 15define void @autogen_SD2501752154() {16BB:17 %BC = bitcast <4 x i32> <i32 -1, i32 -1, i32 undef, i32 undef> to <4 x float>18 br label %CF7419 20CF74: ; preds = %CF74, %CF21 %E54 = extractelement <1 x i1> undef, i32 022 br i1 %E54, label %CF74, label %CF7923 24CF79: ; preds = %CF7525 %I63 = insertelement <4 x float> %BC, float undef, i32 026 ret void27}28