1*9880d681SAndroid Build Coastguard Worker; RUN: llc -march=mips < %s 2*9880d681SAndroid Build Coastguard Worker; RUN: llc -march=mips -mattr=+msa,+fp64 < %s 3*9880d681SAndroid Build Coastguard Worker; RUN: llc -march=mipsel < %s 4*9880d681SAndroid Build Coastguard Worker; RUN: llc -march=mipsel -mattr=+msa,+fp64 < %s 5*9880d681SAndroid Build Coastguard Worker 6*9880d681SAndroid Build Coastguard Worker; This test is based on an llvm-stress generated test case with seed=449609655 7*9880d681SAndroid Build Coastguard Worker 8*9880d681SAndroid Build Coastguard Worker; This test originally failed for MSA with a 9*9880d681SAndroid Build Coastguard Worker; "Comparison requires equal bit widths" assertion. 10*9880d681SAndroid Build Coastguard Worker; The legalizer legalized ; the <4 x i8>'s into <4 x i32>'s, then a call to 11*9880d681SAndroid Build Coastguard Worker; isVSplat() returned the splat value for <i8 -1, i8 -1, ...> as a 32-bit APInt 12*9880d681SAndroid Build Coastguard Worker; (255), but the zeroinitializer splat value as an 8-bit APInt (0). The 13*9880d681SAndroid Build Coastguard Worker; assertion occurred when trying to check the values were bitwise inverses of 14*9880d681SAndroid Build Coastguard Worker; each-other. 15*9880d681SAndroid Build Coastguard Worker; 16*9880d681SAndroid Build Coastguard Worker; It should at least successfully build. 17*9880d681SAndroid Build Coastguard Worker 18*9880d681SAndroid Build Coastguard Workerdefine void @autogen_SD449609655(i8) { 19*9880d681SAndroid Build Coastguard WorkerBB: 20*9880d681SAndroid Build Coastguard Worker %Cmp = icmp ult i8 -3, %0 21*9880d681SAndroid Build Coastguard Worker br label %CF78 22*9880d681SAndroid Build Coastguard Worker 23*9880d681SAndroid Build Coastguard WorkerCF78: ; preds = %CF81, %CF78, %BB 24*9880d681SAndroid Build Coastguard Worker %Sl31 = select i1 %Cmp, <4 x i8> <i8 -1, i8 -1, i8 -1, i8 -1>, <4 x i8> zeroinitializer 25*9880d681SAndroid Build Coastguard Worker br i1 undef, label %CF78, label %CF81 26*9880d681SAndroid Build Coastguard Worker 27*9880d681SAndroid Build Coastguard WorkerCF81: ; preds = %CF78 28*9880d681SAndroid Build Coastguard Worker br i1 undef, label %CF78, label %CF80 29*9880d681SAndroid Build Coastguard Worker 30*9880d681SAndroid Build Coastguard WorkerCF80: ; preds = %CF81 31*9880d681SAndroid Build Coastguard Worker %I59 = insertelement <4 x i8> %Sl31, i8 undef, i32 1 32*9880d681SAndroid Build Coastguard Worker ret void 33*9880d681SAndroid Build Coastguard Worker} 34