llc would crash for the below when -mcpu=pwr8:
define void @qpConv2uw_02(i32* nocapture %res) {
entry:
%0 = load fp128, fp128* getelementptr inbounds ([4 x fp128], [4 x fp128]* @f128Array, i64 0, i64 2), align 16
%conv = fptoui fp128 %0 to i32
store i32 %conv, i32* %res, align 4
ret void
}We should not generate FP_TO_(S|U)INT_IN_VSR for f128 types at this time. This patch will fix that.
Can we check this with isTypeLegal() instead of enum all the conditions ?