brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · d4b80c6 Raw
32 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 was because undef's are ignored when checking if a vector constant is a8; splat, but are legalized to zero if left in the DAG which changes the constant9; into a non-splat.10;11; It should at least successfully build.12 13define void @autogen_SD2090927243() {14BB:15  br label %CF7716 17CF77:                                             ; preds = %CF77, %CF8018  %Shuff27 = shufflevector <16 x i8> <i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1>,19                           <16 x i8> <i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1>,20                           <16 x i32> <i32 27, i32 29, i32 31, i32 1, i32 3, i32 5, i32 undef, i32 9, i32 11, i32 13, i32 undef, i32 17, i32 19, i32 21, i32 23, i32 undef>21  %ZE30 = zext <16 x i8> %Shuff27 to <16 x i32>22  %Cmp32 = fcmp ueq float undef, 0x3CDA6E5E4000000023  br i1 %Cmp32, label %CF77, label %CF24 25CF:                                               ; preds = %CF, %CF8126  %E48 = extractelement <16 x i32> %ZE30, i32 1427  br i1 undef, label %CF, label %CF7828 29CF78:                                             ; preds = %CF30  ret void31}32