OSDN Git Service

[X86] Force floating point values in constant pool decoding to print in scientific...
authorCraig Topper <craig.topper@intel.com>
Mon, 29 Oct 2018 04:52:04 +0000 (04:52 +0000)
committerCraig Topper <craig.topper@intel.com>
Mon, 29 Oct 2018 04:52:04 +0000 (04:52 +0000)
commitf3ae95d632a56659f51fb2feceb61e459e272d4d
treea5c5fc5552bc66f85aa883a6dcbeada9dd7ce99e
parent020d70964c63b90d99eed2c15ee4649bb3138dda
[X86] Force floating point values in constant pool decoding to print in scientific notation so they can't be confused with integers.

When the floating point constants are whole numbers they have no decimal point so look like integers, but mean something very different in something like an 'and' instruction.

Ideally we would just print a decimal point and a 0, but I couldn't see how to make APFloat::toString do that.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@345488 91177308-0d34-0410-b5e6-96231b3b80d8
49 files changed:
lib/Target/X86/X86MCInstLower.cpp
test/CodeGen/X86/2011-10-19-widen_vselect.ll
test/CodeGen/X86/2011-20-21-zext-ui2fp.ll
test/CodeGen/X86/avx-basic.ll
test/CodeGen/X86/avx-vbroadcast.ll
test/CodeGen/X86/avx-vperm2x128.ll
test/CodeGen/X86/avx2-fma-fneg-combine.ll
test/CodeGen/X86/avx2-vbroadcast.ll
test/CodeGen/X86/avx512-arith.ll
test/CodeGen/X86/avx512-intrinsics-fast-isel.ll
test/CodeGen/X86/broadcast-elm-cross-splat-vec.ll
test/CodeGen/X86/buildvec-insertvec.ll
test/CodeGen/X86/combine-fabs.ll
test/CodeGen/X86/combine-fcopysign.ll
test/CodeGen/X86/cvtv2f32.ll
test/CodeGen/X86/fma-fneg-combine.ll
test/CodeGen/X86/fma-intrinsics-fast-isel.ll
test/CodeGen/X86/fma_patterns.ll
test/CodeGen/X86/fma_patterns_wide.ll
test/CodeGen/X86/fmul-combines.ll
test/CodeGen/X86/fold-vector-trunc-sitofp.ll
test/CodeGen/X86/insert-into-constant-vector.ll
test/CodeGen/X86/packss.ll
test/CodeGen/X86/pow.ll
test/CodeGen/X86/pr2656.ll
test/CodeGen/X86/pr38639.ll
test/CodeGen/X86/recip-fastmath.ll
test/CodeGen/X86/recip-fastmath2.ll
test/CodeGen/X86/select_const.ll
test/CodeGen/X86/splat-for-size.ll
test/CodeGen/X86/sqrt-fastmath.ll
test/CodeGen/X86/sse2.ll
test/CodeGen/X86/subvector-broadcast.ll
test/CodeGen/X86/v4f32-immediate.ll
test/CodeGen/X86/vec_cast3.ll
test/CodeGen/X86/vec_floor.ll
test/CodeGen/X86/vec_fp_to_int.ll
test/CodeGen/X86/vec_fpext.ll
test/CodeGen/X86/vec_int_to_fp.ll
test/CodeGen/X86/vec_ss_load_fold.ll
test/CodeGen/X86/vec_uint_to_fp-fastmath.ll
test/CodeGen/X86/vector-constrained-fp-intrinsics.ll
test/CodeGen/X86/vector-shuffle-combining-avx.ll
test/CodeGen/X86/vector-shuffle-combining-avx2.ll
test/CodeGen/X86/vector-shuffle-combining-xop.ll
test/CodeGen/X86/vector-shuffle-combining.ll
test/CodeGen/X86/vselect-avx.ll
test/CodeGen/X86/widen_arith-6.ll
test/CodeGen/X86/x86-setcc-int-to-fp-combine.ll