parent
b15062031a
commit
e1ae299417
|
@ -1,3 +1,30 @@
|
|||
2017-06-27 Segher Boessenkool <segher@kernel.crashing.org>
|
||||
|
||||
Backports from trunk:
|
||||
|
||||
2017-05-17 Segher Boessenkool <segher@kernel.crashing.org>
|
||||
PR middle-end/80692
|
||||
* real.c (do_compare): Give decimal_do_compare preference over
|
||||
comparing just the signs.
|
||||
|
||||
2017-05-31 Segher Boessenkool <segher@kernel.crashing.org>
|
||||
PR target/80618
|
||||
* config/rs6000/vector.md (*vector_uneq<mode>): Write the nor in the
|
||||
splitter result in the canonical way.
|
||||
|
||||
2017-06-09 Segher Boessenkool <segher@kernel.crashing.org>
|
||||
PR target/80966
|
||||
* config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Assert that
|
||||
gen_add3_insn did not fail.
|
||||
* config/rs6000/rs6000.md (add<mode>3): If asked to add a constant to
|
||||
r0, construct that number in a temporary reg and add that reg to r0.
|
||||
If asked to put the result in r0 as well, fail.
|
||||
|
||||
2017-06-23 Segher Boessenkool <segher@kernel.crashing.org>
|
||||
PR middle-end/80902
|
||||
* builtins.c (expand_builtin_atomic_fetch_op): If emitting code after
|
||||
a call, force the call to not be a tail call.
|
||||
|
||||
2017-06-27 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR sanitizer/81209
|
||||
|
|
|
@ -5939,6 +5939,12 @@ expand_builtin_atomic_fetch_op (machine_mode mode, tree exp, rtx target,
|
|||
gcc_assert (TREE_OPERAND (addr, 0) == fndecl);
|
||||
TREE_OPERAND (addr, 0) = builtin_decl_explicit (ext_call);
|
||||
|
||||
/* If we will emit code after the call, the call can not be a tail call.
|
||||
If it is emitted as a tail call, a barrier is emitted after it, and
|
||||
then all trailing code is removed. */
|
||||
if (!ignore)
|
||||
CALL_EXPR_TAILCALL (exp) = 0;
|
||||
|
||||
/* Expand the call here so we can emit trailing code. */
|
||||
ret = expand_call (exp, target, ignore);
|
||||
|
||||
|
|
|
@ -28134,9 +28134,11 @@ rs6000_emit_allocate_stack (HOST_WIDE_INT size, rtx copy_reg, int copy_off)
|
|||
&& REGNO (stack_limit_rtx) > 1
|
||||
&& REGNO (stack_limit_rtx) <= 31)
|
||||
{
|
||||
emit_insn (gen_add3_insn (tmp_reg, stack_limit_rtx, GEN_INT (size)));
|
||||
emit_insn (gen_cond_trap (LTU, stack_reg, tmp_reg,
|
||||
const0_rtx));
|
||||
rtx_insn *insn
|
||||
= gen_add3_insn (tmp_reg, stack_limit_rtx, GEN_INT (size));
|
||||
gcc_assert (insn);
|
||||
emit_insn (insn);
|
||||
emit_insn (gen_cond_trap (LTU, stack_reg, tmp_reg, const0_rtx));
|
||||
}
|
||||
else if (GET_CODE (stack_limit_rtx) == SYMBOL_REF
|
||||
&& TARGET_32BIT
|
||||
|
|
|
@ -1650,6 +1650,17 @@
|
|||
|| rtx_equal_p (operands[0], operands[1]))
|
||||
? operands[0] : gen_reg_rtx (<MODE>mode));
|
||||
|
||||
/* Adding a constant to r0 is not a valid insn, so use a different
|
||||
strategy in that case. */
|
||||
if (REGNO (operands[1]) == 0 || REGNO (tmp) == 0)
|
||||
{
|
||||
if (operands[0] == operands[1])
|
||||
FAIL;
|
||||
rs6000_emit_move (operands[0], operands[2], <MODE>mode);
|
||||
emit_insn (gen_add<mode>3 (operands[0], operands[1], operands[0]));
|
||||
DONE;
|
||||
}
|
||||
|
||||
HOST_WIDE_INT val = INTVAL (operands[2]);
|
||||
HOST_WIDE_INT low = ((val & 0xffff) ^ 0x8000) - 0x8000;
|
||||
HOST_WIDE_INT rest = trunc_int_for_mode (val - low, <MODE>mode);
|
||||
|
|
|
@ -582,13 +582,12 @@
|
|||
(gt:VEC_F (match_dup 2)
|
||||
(match_dup 1)))
|
||||
(set (match_dup 0)
|
||||
(not:VEC_F (ior:VEC_F (match_dup 3)
|
||||
(match_dup 4))))]
|
||||
"
|
||||
(and:VEC_F (not:VEC_F (match_dup 3))
|
||||
(not:VEC_F (match_dup 4))))]
|
||||
{
|
||||
operands[3] = gen_reg_rtx (<MODE>mode);
|
||||
operands[4] = gen_reg_rtx (<MODE>mode);
|
||||
}")
|
||||
})
|
||||
|
||||
(define_insn_and_split "*vector_ltgt<mode>"
|
||||
[(set (match_operand:VEC_F 0 "vfloat_operand" "")
|
||||
|
|
|
@ -960,12 +960,12 @@ do_compare (const REAL_VALUE_TYPE *a, const REAL_VALUE_TYPE *b,
|
|||
gcc_unreachable ();
|
||||
}
|
||||
|
||||
if (a->sign != b->sign)
|
||||
return -a->sign - -b->sign;
|
||||
|
||||
if (a->decimal || b->decimal)
|
||||
return decimal_do_compare (a, b, nan_result);
|
||||
|
||||
if (a->sign != b->sign)
|
||||
return -a->sign - -b->sign;
|
||||
|
||||
if (REAL_EXP (a) > REAL_EXP (b))
|
||||
ret = 1;
|
||||
else if (REAL_EXP (a) < REAL_EXP (b))
|
||||
|
|
|
@ -1,3 +1,15 @@
|
|||
2017-06-27 Segher Boessenkool <segher@kernel.crashing.org>
|
||||
|
||||
Backports from trunk:
|
||||
|
||||
2017-05-17 Segher Boessenkool <segher@kernel.crashing.org>
|
||||
PR middle-end/80692
|
||||
* gcc.c-torture/execute/pr80692.c: New testcase.
|
||||
|
||||
2017-06-09 Segher Boessenkool <segher@kernel.crashing.org>
|
||||
PR target/80966
|
||||
* gcc.target/powerpc/stack-limit.c: New testcase.
|
||||
|
||||
2017-06-27 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR sanitizer/81209
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
/* { dg-require-effective-target dfp } */
|
||||
|
||||
int main () {
|
||||
_Decimal64 d64 = -0.DD;
|
||||
|
||||
if (d64 != 0.DD)
|
||||
__builtin_abort ();
|
||||
|
||||
if (d64 != -0.DD)
|
||||
__builtin_abort ();
|
||||
|
||||
return 0;
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
/* { dg-options "-O0 -fstack-limit-register=r14" } */
|
||||
|
||||
// PR80966
|
||||
|
||||
int foo (int i)
|
||||
{
|
||||
char arr[135000];
|
||||
|
||||
arr[i] = 0;
|
||||
}
|
Loading…
Reference in New Issue