mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-29 03:04:56 +08:00
(emit_store_flag): Properly test for STORE_FLAG_VALUE of just sign bit.
From-SVN: r13552
This commit is contained in:
parent
0802d51684
commit
12dd565fc5
@ -3951,7 +3951,7 @@ emit_store_flag (target, code, op0, op1, mode, unsignedp, normalizep)
|
|||||||
&& GET_MODE_CLASS (mode) == MODE_INT
|
&& GET_MODE_CLASS (mode) == MODE_INT
|
||||||
&& (normalizep || STORE_FLAG_VALUE == 1
|
&& (normalizep || STORE_FLAG_VALUE == 1
|
||||||
|| (GET_MODE_BITSIZE (mode) <= HOST_BITS_PER_WIDE_INT
|
|| (GET_MODE_BITSIZE (mode) <= HOST_BITS_PER_WIDE_INT
|
||||||
&& (STORE_FLAG_VALUE
|
&& ((STORE_FLAG_VALUE & GET_MODE_MASK (mode))
|
||||||
== (HOST_WIDE_INT) 1 << (GET_MODE_BITSIZE (mode) - 1)))))
|
== (HOST_WIDE_INT) 1 << (GET_MODE_BITSIZE (mode) - 1)))))
|
||||||
{
|
{
|
||||||
subtarget = target;
|
subtarget = target;
|
||||||
@ -4145,7 +4145,7 @@ emit_store_flag (target, code, op0, op1, mode, unsignedp, normalizep)
|
|||||||
normalizep = STORE_FLAG_VALUE;
|
normalizep = STORE_FLAG_VALUE;
|
||||||
|
|
||||||
else if (GET_MODE_BITSIZE (mode) <= HOST_BITS_PER_WIDE_INT
|
else if (GET_MODE_BITSIZE (mode) <= HOST_BITS_PER_WIDE_INT
|
||||||
&& (STORE_FLAG_VALUE
|
&& ((STORE_FLAG_VALUE & GET_MODE_MASK (mode))
|
||||||
== (HOST_WIDE_INT) 1 << (GET_MODE_BITSIZE (mode) - 1)))
|
== (HOST_WIDE_INT) 1 << (GET_MODE_BITSIZE (mode) - 1)))
|
||||||
;
|
;
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user