arceb-linux-uclibc for testing purposes.
Jeff
commit 0cd75b5dc1dd8ed3f60d0b12d5cc43cc52d213aa
Author: Jeff Law
Date: Mon Sep 28 13:23:43 2015 -0400
Re: [PATCH] Fix undefined behaviour in arc port
* config/arc/arc.c (arc_legitimize_reload_address): Fix stupid
On 09/26/2015 03:05 AM, Andreas Schwab wrote:
Jeff Law writes:
@@ -9320,7 +9320,9 @@ arc_legitimize_reload_address (rtx *p, machine_mode mode,
int opnum,
if ((scale-1) & offset)
scale = 1;
shift = scale >> 1;
- offset_base = (offset + (256 << shift)) & (-512 << sh
On 09/26/2015 03:06 AM, Andreas Schwab wrote:
Jeff Law writes:
@@ -195,7 +195,7 @@
"@internal
Unconditional two-address add / sub constant"
(and (match_code "const_int")
- (match_test "ival == -1 << 31
+ (match_test "ival == HOST_WIDE_INT (HOST_WIDE_INT_M1U << 31)
Sy
Jeff Law writes:
> @@ -195,7 +195,7 @@
>"@internal
> Unconditional two-address add / sub constant"
>(and (match_code "const_int")
> - (match_test "ival == -1 << 31
> + (match_test "ival == HOST_WIDE_INT (HOST_WIDE_INT_M1U << 31)
Syntax error?
Andreas.
--
Andreas Schwab
Jeff Law writes:
> @@ -9320,7 +9320,9 @@ arc_legitimize_reload_address (rtx *p, machine_mode
> mode, int opnum,
>if ((scale-1) & offset)
> scale = 1;
>shift = scale >> 1;
> - offset_base = (offset + (256 << shift)) & (-512 << shift);
> + offset_base
> + = ((of
And now the ARC port. Tested by building the arc configurations in
config-list.mk with a trunk compiler.
Installed on the trunk,
Jeff
commit ce021a249da7da00877d20a4b3dc79b47eec19c1
Author: Jeff Law
Date: Sat Sep 26 03:22:53 2015 -0400
[PATCH] Fix undefined behaviour in arc port