diff options
author | Georg-Johann Lay <avr@gjlay.de> | 2013-02-08 13:23:34 +0000 |
---|---|---|
committer | Georg-Johann Lay <gjl@gcc.gnu.org> | 2013-02-08 13:23:34 +0000 |
commit | ff54464986fd1994754f5cbaa3921628818cc63f (patch) | |
tree | f151da27f7789e368ab8961edc7f453c040b899a /gcc/fixed-value.h | |
parent | e45cde982611c5a86c215dd4079ca7f0375e141b (diff) | |
download | gcc-ff54464986fd1994754f5cbaa3921628818cc63f.tar.gz |
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
Diffstat (limited to 'gcc/fixed-value.h')
-rw-r--r-- | gcc/fixed-value.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/fixed-value.h b/gcc/fixed-value.h index 5ffe67ca87a..f59466ad4f1 100644 --- a/gcc/fixed-value.h +++ b/gcc/fixed-value.h @@ -50,12 +50,12 @@ extern FIXED_VALUE_TYPE fconst1[MAX_FCONST1]; extern rtx const_fixed_from_fixed_value (FIXED_VALUE_TYPE, enum machine_mode); /* Construct a FIXED_VALUE from a bit payload and machine mode MODE. - The bits in PAYLOAD are used verbatim. */ + The bits in PAYLOAD are sign-extended/zero-extended according to MODE. */ extern FIXED_VALUE_TYPE fixed_from_double_int (double_int, enum machine_mode); /* Return a CONST_FIXED from a bit payload and machine mode MODE. - The bits in PAYLOAD are used verbatim. */ + The bits in PAYLOAD are sign-extended/zero-extended according to MODE. */ static inline rtx const_fixed_from_double_int (double_int payload, enum machine_mode mode) |