i1 is the native type for PowerPC if crbits is enabled. However, we need to promote the i1 to i64 as we didn't have the pattern for i1. This patch fix the crash for this simple case:
define i1 @test(double %m) { entry: %conv = fptoui double %m to i1 ret i1 %conv }
LLVM ERROR: Cannot select: t3: i1 = fp_to_uint t2 t2: f64,ch = CopyFromReg t0, Register:f64 %0 t1: f64 = Register %0 In function: test PLEASE submit a bug report to xl_beta@ca.ibm.com and include the crash backtrace. Stack dump: