[AVX-512] LLVM ERROR: Cannot select
| Bugzilla Link | 25193 |
| Resolution | FIXED |
| Resolved on | Oct 26, 2015 07:49 |
| Version | trunk |
| OS | Linux |
| Attachments | Source IR, which causes the error. |
| Reporter | LLVM Bugzilla Contributor |
| CC | @dbabokin,@echristo,@delena |
Extended Description
The out from llc:
LLVM ERROR: Cannot select: t152: i1 = select_cc undef:i32, t235, t187, t190, seteq:ch t19: i32 = undef t235: i32 = extract_vector_elt t233, Constant:i32<1> t233: v4i32 = extract_subvector t77, Constant:i32<0> t77: v16i32 = bitcast t31 t31: v8i64 = shl t28, t364 t28: v8i64 = bitcast t27 t27: v16i32 = BUILD_VECTOR Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0> t25: i32 = Constant<0> t25: i32 = Constant<0> t25: i32 = Constant<0> t25: i32 = Constant<0> t25: i32 = Constant<0> t25: i32 = Constant<0> t25: i32 = Constant<0> t25: i32 = Constant<0> t25: i32 = Constant<0> t25: i32 = Constant<0> t25: i32 = Constant<0> t25: i32 = Constant<0> t25: i32 = Constant<0> t25: i32 = Constant<0> t25: i32 = Constant<0> t25: i32 = Constant<0> t364: v8i64,ch = load<LD64[ConstantPool]> t0, t256, undef:i32 t256: i32 = X86ISD::Wrapper TargetConstantPool:i32<<16 x i32> <i32 32, i32 0, i32 32, i32 0, i32 32, i32 0, i32 32, i32 0, i32 32, i32 0, i32 32, i32 0, i32 32, i32 0, i32 32, i32 0>> 0 t255: i32 = TargetConstantPool<<16 x i32> <i32 32, i32 0, i32 32, i32 0, i32 32, i32 0, i32 32, i32 0, i32 32, i32 0, i32 32, i32 0, i32 32, i32 0, i32 32, i32 0>> 0 t19: i32 = undef t25: i32 = Constant<0> t47: i32 = Constant<1> t187: i1 = truncate t362 t362: i8 = and t361, Constant:i8<1> t361: i8 = X86ISD::SETCC_CARRY Constant:i8<2>, t184:1 t185: i8 = Constant<2> t184: i32,i32 = X86ISD::SUB undef:i32, t234 t19: i32 = undef t234: i32 = extract_vector_elt t233, Constant:i32<0> t233: v4i32 = extract_subvector t77, Constant:i32<0> t77: v16i32 = bitcast t31 t31: v8i64 = shl t28, t364 t28: v8i64 = bitcast t27
t364: v8i64,ch = load<LD64[ConstantPool]> t0, t256, undef:i32
t25: i32 = Constant<0>
t25: i32 = Constant<0>
t301: i8 = Constant<1>
t190: i1 = truncate t358 t358: i8 = and t357, Constant:i8<1> t357: i8 = X86ISD::SETCC_CARRY Constant:i8<2>, t188:1 t185: i8 = Constant<2> t188: i32,i32 = X86ISD::SUB undef:i32, t235 t19: i32 = undef t235: i32 = extract_vector_elt t233, Constant:i32<1> t233: v4i32 = extract_subvector t77, Constant:i32<0> t77: v16i32 = bitcast t31 t31: v8i64 = shl t28, t364 t28: v8i64 = bitcast t27
t364: v8i64,ch = load<LD64[ConstantPool]> t0, t256, undef:i32
t25: i32 = Constant<0>
t47: i32 = Constant<1>
t301: i8 = Constant<1>
In function: f_fu
keys for llc: -mcpu=knl -march=x86
Fixed in r250996.
Even adding -mattr=+avx512f doesn't fix.