[X86] Use correctly sized floating point literals in *zero_ps/pd.
authorCraig Topper <craig.topper@sifive.com>
Thu, 17 Nov 2022 22:03:05 +0000 (14:03 -0800)
committerCraig Topper <craig.topper@sifive.com>
Thu, 17 Nov 2022 22:28:52 +0000 (14:28 -0800)
commitc9320bc87121af2a198f174c8d58f75295efbbd7
treee02209f91f1dbccedb0f8a568c7d4987cd5a881c
parentdddf6ab27212d9813a360eb95440c61e81a308be
[X86] Use correctly sized floating point literals in *zero_ps/pd.

This avoids depending on int->float or double->float conversion.
Improving codegen with #pragma STDC FENV_ACCESS ON.

Really we should improve constant folding somewhere, but this was
a cheap and easy improvement.

Fixes PR59052.
clang/lib/Headers/avx512fintrin.h
clang/lib/Headers/avxintrin.h
clang/lib/Headers/emmintrin.h
clang/lib/Headers/xmmintrin.h
clang/test/CodeGen/X86/avx512dq-builtins-constrained.c