v2f64->v2i64 and v4f64->v4i64 may raise unexpected exceptions when target only support avx512dq because the high bit of zmm register is undef.
This patch will clear zmm register before doing strict_fp_to_int.
Details
Details
Diff Detail
Diff Detail
Event Timeline
llvm/test/CodeGen/X86/vector-constrained-fp-intrinsics.ll | ||
---|---|---|
4213 | VEX.128 and EVEX.128 will zero upper bits (MAXVL-1:128) of the corresponding ZMM register. |
VEX.128 and EVEX.128 will zero upper bits (MAXVL-1:128) of the corresponding ZMM register.