diff options
author | Jakub Jelinek <jakub@redhat.com> | 2012-04-25 13:35:38 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2012-04-25 13:35:38 +0200 |
commit | 0ea62d936f1915759660b1a4e6ed124f73ac37ee (patch) | |
tree | 2c516d8bbd1d94a9cea0ff4574eb770c8f256524 /gcc/double-int.h | |
parent | 228f466fd61238fb74283b6b7d85cba483ce51ef (diff) | |
download | gcc-0ea62d936f1915759660b1a4e6ed124f73ac37ee.zip gcc-0ea62d936f1915759660b1a4e6ed124f73ac37ee.tar.gz gcc-0ea62d936f1915759660b1a4e6ed124f73ac37ee.tar.bz2 |
re PR tree-optimization/53058 (Another ice in remove_range_assertions)
PR tree-optimization/53058
* double-int.h (double_int_max_value, double_int_min_value): New
prototypes.
* double-int.c (double_int_max_value, double_int_min_value): New
functions.
* tree-vrp.c (register_edge_assert_for_2): Compare mask
for LE_EXPR or GT_EXPR with double_int_max_value
instead of double_int_mask.
* gcc.c-torture/compile/pr53058.c: New test.
From-SVN: r186816
Diffstat (limited to 'gcc/double-int.h')
-rw-r--r-- | gcc/double-int.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/double-int.h b/gcc/double-int.h index 408ed92..78191cc 100644 --- a/gcc/double-int.h +++ b/gcc/double-int.h @@ -1,5 +1,5 @@ /* Operations with long integers. - Copyright (C) 2006, 2007, 2008, 2010 Free Software Foundation, Inc. + Copyright (C) 2006, 2007, 2008, 2010, 2012 Free Software Foundation, Inc. This file is part of GCC. @@ -242,6 +242,9 @@ double_int double_int_sext (double_int, unsigned); double_int double_int_zext (double_int, unsigned); double_int double_int_mask (unsigned); +double_int double_int_max_value (unsigned int, bool); +double_int double_int_min_value (unsigned int, bool); + #define ALL_ONES (~((unsigned HOST_WIDE_INT) 0)) /* The operands of the following comparison functions must be processed |