aboutsummaryrefslogtreecommitdiff
path: root/gcc/gdbhooks.py
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@linaro.org>2017-08-30 11:20:11 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2017-08-30 11:20:11 +0000
commitf4f6058097d99812ee3eda98d09c23fccdc7ba94 (patch)
tree9b897ae816e321979e17f0257c4398cc8f52bb63 /gcc/gdbhooks.py
parent4e084bc3ce764a73312cefdda9a4736b8e27b5d1 (diff)
downloadgcc-f4f6058097d99812ee3eda98d09c23fccdc7ba94.zip
gcc-f4f6058097d99812ee3eda98d09c23fccdc7ba94.tar.gz
gcc-f4f6058097d99812ee3eda98d09c23fccdc7ba94.tar.bz2
[70/77] Make expand_fix/float check for scalar modes
The expand_float code: /* Unsigned integer, and no way to convert directly. Convert as signed, then unconditionally adjust the result. */ and the expand_fix code: /* For an unsigned conversion, there is one more way to do it. If we have a signed conversion, we generate code that compares the real value to the largest representable positive number. If if is smaller, the conversion is done normally. Otherwise, subtract one plus the highest signed number, convert, and add it back. are restricted to scalars, since the expansion branches on a comparison of the value. This patch makes that explicit. 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org> Alan Hayward <alan.hayward@arm.com> David Sherwood <david.sherwood@arm.com> gcc/ * optabs.c (expand_float): Explicitly check for scalars before using a branching expansion. (expand_fix): Likewise. Co-Authored-By: Alan Hayward <alan.hayward@arm.com> Co-Authored-By: David Sherwood <david.sherwood@arm.com> From-SVN: r251521
Diffstat (limited to 'gcc/gdbhooks.py')
0 files changed, 0 insertions, 0 deletions