Stop print_hex from printing bits above the precision
authorRichard Sandiford <richard.sandiford@linaro.org>
Thu, 26 Oct 2017 16:09:17 +0000 (16:09 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Thu, 26 Oct 2017 16:09:17 +0000 (16:09 +0000)
commit7984457f8295811880c37e7861aa7c0454ce9845
tree8520bb6366825f7c10916bd90242062701968241
parent18b279715c298992748426a41083ec76f3875bfa
Stop print_hex from printing bits above the precision

2017-10-26  Richard Sandiford  <richard.sandiford@linaro.org>

gcc/
* wide-int-print.cc (print_hex): Loop based on extract_uhwi.
Don't print any bits outside the precision of the value.
* wide-int.cc (test_printing): Add some new tests.

From-SVN: r254109
gcc/ChangeLog
gcc/wide-int-print.cc
gcc/wide-int.cc