]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR tree-optimization/56064 (Optimize VIEW_CONVERT_EXPR with FIXED_CST)
authorGeorg-Johann Lay <avr@gjlay.de>
Fri, 8 Feb 2013 13:23:34 +0000 (13:23 +0000)
committerGeorg-Johann Lay <gjl@gcc.gnu.org>
Fri, 8 Feb 2013 13:23:34 +0000 (13:23 +0000)
commitff54464986fd1994754f5cbaa3921628818cc63f
treef151da27f7789e368ab8961edc7f453c040b899a
parente45cde982611c5a86c215dd4079ca7f0375e141b
re PR tree-optimization/56064 (Optimize VIEW_CONVERT_EXPR with FIXED_CST)

gcc/
PR tree-optimization/56064
* fixed-value.c (fixed_from_double_int): Sign/zero extend payload
bits according to mode.
* fixed-value.h (fixed_from_double_int)
(const_fixed_from_double_int): Adjust comments.

gcc/testsuite/
PR tree-optimization/56064
* gcc.dg/fixed-point/view-convert-2.c: New test.

From-SVN: r195885
gcc/ChangeLog
gcc/fixed-value.c
gcc/fixed-value.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/fixed-point/view-convert-2.c [new file with mode: 0644]