+2019-02-25 Jakub Jelinek <jakub@redhat.com>
+
+ PR target/89438
+ * config/arm.vfp.md (*negdf2_vfp): Use
+ gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
+ * config/arm/neon.md (neon_copysignf<mode>): Likewise.
+
2019-02-24 Jakub Jelinek <jakub@redhat.com>
PR rtl-optimization/89445
"{
rtx v_bitmask_cast;
rtx v_bitmask = gen_reg_rtx (<VCVTF:V_cmp_result>mode);
- rtx c = GEN_INT (0x80000000);
+ rtx c = gen_int_mode (0x80000000, SImode);
emit_move_insn (v_bitmask,
gen_const_vec_duplicate (<VCVTF:V_cmp_result>mode, c));
if (REGNO (operands[0]) == REGNO (operands[1]))
{
operands[0] = gen_highpart (SImode, operands[0]);
- operands[1] = gen_rtx_XOR (SImode, operands[0], GEN_INT (0x80000000));
+ operands[1] = gen_rtx_XOR (SImode, operands[0],
+ gen_int_mode (0x80000000, SImode));
}
else
{
rtx in_hi, in_lo, out_hi, out_lo;
in_hi = gen_rtx_XOR (SImode, gen_highpart (SImode, operands[1]),
- GEN_INT (0x80000000));
+ gen_int_mode (0x80000000, SImode));
in_lo = gen_lowpart (SImode, operands[1]);
out_hi = gen_highpart (SImode, operands[0]);
out_lo = gen_lowpart (SImode, operands[0]);
+2019-02-25 Jakub Jelinek <jakub@redhat.com>
+
+ PR target/89438
+ * gcc.dg/pr89438.c: New test.
+
2019-02-24 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/84585
--- /dev/null
+/* PR target/89438 */
+/* { dg-do compile } */
+/* { dg-options "-O2 -g -w" } */
+
+struct S { double b, c; struct T { double d, e; } f[16]; } g;
+int h, i, j;
+double k;
+
+double
+foo (void)
+{
+ int m;
+ if (j)
+ return k;
+ long a, p = a - 80;
+ double b, n;
+ n = b * h + g.f[p].e;
+ m = n;
+ double o = 1 ? m : 1.0;
+ k = i ? -o : o;
+ return k;
+}