PR tree-optimization/64807
* wide-int.cc (wi::divmod_internal): Clear
b_dividend[dividend_blocks_needed].
* gcc.dg/pr64807.c: New test.
From-SVN: r220153
+2015-01-27 Jakub Jelinek <jakub@redhat.com>
+
+ PR tree-optimization/64807
+ * wide-int.cc (wi::divmod_internal): Clear
+ b_dividend[dividend_blocks_needed].
+
2015-01-26 DJ Delorie <dj@redhat.com>
* config/rl78/rl78.c (move_elim_pass): Don't optimize away
2015-01-27 Jakub Jelinek <jakub@redhat.com>
+ PR tree-optimization/64807
+ * gcc.dg/pr64807.c: New test.
+
PR c/64766
* gcc.dg/pr64766.c: New test.
--- /dev/null
+/* PR tree-optimization/64807 */
+/* { dg-do run { target int128 } } */
+/* { dg-options "-O2" } */
+
+__uint128_t
+foo (void)
+{
+ __uint128_t a = -1;
+ __uint128_t b = -1;
+ return a / b;
+}
+
+int
+main ()
+{
+ if (foo () != 1)
+ __builtin_abort ();
+ return 0;
+}
divisor_blocks_needed, divisor_prec, sgn);
m = dividend_blocks_needed;
+ b_dividend[m] = 0;
while (m > 1 && b_dividend[m - 1] == 0)
m--;