aboutsummaryrefslogtreecommitdiff
path: root/gcc/fixed-value.h
diff options
context:
space:
mode:
authorGeorg-Johann Lay <avr@gjlay.de>2013-02-08 13:23:34 +0000
committerGeorg-Johann Lay <avr@gjlay.de>2013-02-08 13:23:34 +0000
commite44bdca24beef37b00d82b9fa0e903ba23189c33 (patch)
treef151da27f7789e368ab8961edc7f453c040b899a /gcc/fixed-value.h
parentb107f1317394ef0685eadb657e5f847f7b15753a (diff)
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. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@195885 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fixed-value.h')
-rw-r--r--gcc/fixed-value.h4
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)