Backported from mainline
2019-01-04 Jakub Jelinek <jakub@redhat.com>
PR target/88594
* config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
of GET_MODE (opN) as modes of the libcall arguments.
* gcc.dg/pr88594.c: New test.
From-SVN: r275084
2019-08-30 Jakub Jelinek <jakub@redhat.com>
Backported from mainline
+ 2019-01-04 Jakub Jelinek <jakub@redhat.com>
+
+ PR target/88594
+ * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
+ of GET_MODE (opN) as modes of the libcall arguments.
+
2019-01-03 Jakub Jelinek <jakub@redhat.com>
PR debug/88644
rtx rem = assign_386_stack_local (mode, SLOT_TEMP);
rtx quot = emit_library_call_value (libfunc, NULL_RTX, LCT_NORMAL,
- mode, 3,
- op0, GET_MODE (op0),
- op1, GET_MODE (op1),
- XEXP (rem, 0), Pmode);
+ mode, 3, op0, mode, op1, mode,
+ XEXP (rem, 0), Pmode);
*quot_p = quot;
*rem_p = rem;
}
2019-08-30 Jakub Jelinek <jakub@redhat.com>
Backported from mainline
+ 2019-01-04 Jakub Jelinek <jakub@redhat.com>
+
+ PR target/88594
+ * gcc.dg/pr88594.c: New test.
+
2019-01-03 Jakub Jelinek <jakub@redhat.com>
PR debug/88644
--- /dev/null
+/* PR target/88594 */
+/* { dg-do compile { target int128 } } */
+/* { dg-options "-O2 -fno-tree-dominator-opts -fno-tree-forwprop -fno-tree-vrp" } */
+
+__int128
+foo (__int128 x, __int128 *y)
+{
+ int a;
+ __int128 z, r;
+ for (a = 0; a < 17; ++a)
+ ;
+ z = x / a;
+ r = x % a;
+ *y = z;
+ return r;
+}