aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg
diff options
context:
space:
mode:
authorDiego Novillo <dnovillo@redhat.com>2005-11-06 14:51:16 +0000
committerDiego Novillo <dnovillo@gcc.gnu.org>2005-11-06 09:51:16 -0500
commitdb3d5328dd4d5a9945670a08ebe04b0ec9b4b16c (patch)
tree9040a86d0a4d70ad51416593d2352fe4dbcadec0 /gcc/testsuite/gcc.dg
parent3a4983938c7257386f0579f8b55f3ab616c52242 (diff)
downloadgcc-db3d5328dd4d5a9945670a08ebe04b0ec9b4b16c.zip
gcc-db3d5328dd4d5a9945670a08ebe04b0ec9b4b16c.tar.gz
gcc-db3d5328dd4d5a9945670a08ebe04b0ec9b4b16c.tar.bz2
re PR tree-optimization/24670 (VRP ICE in compare_name_with_value)
PR 24670 * tree-vrp.c (fix_equivalence_set): New. (extract_range_from_assert): Call it. testsuite/ PR 24670 * gcc.dg/tree-ssa/pr24670.c: New test. From-SVN: r106562
Diffstat (limited to 'gcc/testsuite/gcc.dg')
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/pr24670.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr24670.c b/gcc/testsuite/gcc.dg/tree-ssa/pr24670.c
new file mode 100644
index 0000000..a5ff800
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/tree-ssa/pr24670.c
@@ -0,0 +1,23 @@
+/* { dg-do compile } */
+/* { dg-options "-O2" } */
+
+__inline__ void
+shift128Right (int count, long long int *z1Ptr)
+{
+ long long int z1;
+ if (count == 0);
+ else if (count < 64);
+ else
+ z1 = (count < 64) ? count : 0;
+ *z1Ptr = z1;
+}
+
+float128_rem ()
+{
+ signed int expDiff;
+ long long int aSig1;
+ long long int sigMean1;
+ if (-64 < expDiff)
+ shift128Right (-expDiff, &aSig1);
+ add128 (&sigMean1);
+}